C# Class GonzoNet.Listener

Represents a listener that listens for incoming login clients.
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Свойство Type Description
Clients SynchronizedCollection

Méthodes publiques

Méthode 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 méthode

public Close ( ) : void
Résultat void

GetClient() public méthode

public GetClient ( string RemoteIP, int RemotePort ) : NetworkClient
RemoteIP string
RemotePort int
Résultat NetworkClient

Initialize() public méthode

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

Listener() public méthode

Initializes a new instance of Listener.
public Listener ( EncryptionMode Mode ) : System
Mode EncryptionMode
Résultat System

OnAccept() public méthode

Callback for accepting connections.
public OnAccept ( IAsyncResult AR ) : void
AR IAsyncResult
Résultat void

RemoveClient() public méthode

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.
Résultat void

Property Details

Clients public_oe property

public SynchronizedCollection Clients
Résultat SynchronizedCollection