C# 클래스 GonzoNet.Listener

Represents a listener that listens for incoming login clients.
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Clients SynchronizedCollection

공개 메소드들

메소드 설명
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.

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

GetClient() 공개 메소드

public GetClient ( string RemoteIP, int RemotePort ) : NetworkClient
RemoteIP string
RemotePort int
리턴 NetworkClient

Initialize() 공개 메소드

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

Listener() 공개 메소드

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

OnAccept() 공개 메소드

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

RemoveClient() 공개 메소드

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.
리턴 void

프로퍼티 상세

Clients 공개적으로 프로퍼티

public SynchronizedCollection Clients
리턴 SynchronizedCollection