C# Class GonzoNet.Listener

Represents a listener that listens for incoming login clients.
Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
Clients SynchronizedCollection

Public Methods

Method Description
Close ( ) : void
GetClient ( string RemoteIP, int RemotePort ) : NetworkClient
Initialize ( IPEndPoint LocalEP ) : void

Initializes Listener. Throws SocketException if something went haywire.

Listener ( EncryptionMode Mode ) : System

Initializes a new instance of Listener.

OnAccept ( IAsyncResult AR ) : void

Callback for accepting connections.

RemoveClient ( NetworkClient Client ) : void

Removes a client from the internal list of connected clients. Should really only be called internally by the NetworkClient.Disconnect() method.

Method Details

Close() public method

public Close ( ) : void
return void

GetClient() public method

public GetClient ( string RemoteIP, int RemotePort ) : NetworkClient
RemoteIP string
RemotePort int
return NetworkClient

Initialize() public method

Initializes Listener. Throws SocketException if something went haywire.
public Initialize ( IPEndPoint LocalEP ) : void
LocalEP System.Net.IPEndPoint The endpoint to listen on.
return void

Listener() public method

Initializes a new instance of Listener.
public Listener ( EncryptionMode Mode ) : System
Mode EncryptionMode
return System

OnAccept() public method

Callback for accepting connections.
public OnAccept ( IAsyncResult AR ) : void
AR IAsyncResult
return void

RemoveClient() public method

Removes a client from the internal list of connected clients. Should really only be called internally by the NetworkClient.Disconnect() method.
public RemoveClient ( NetworkClient Client ) : void
Client NetworkClient The client to remove.
return void

Property Details

Clients public_oe property

public SynchronizedCollection Clients
return SynchronizedCollection