C# 클래스 LitDev.LDServer

파일 보기 프로젝트 열기: litdev1/LitDev 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_ClientMessageDelegate SmallBasicCallback
lastClient string
lastClientConnected string
lastClientDisconnected string
lastClientMessage string

Private Properties

프로퍼티 타입 설명
ClientMessageDelegate void
GetClient Client
GetClient Client
Listen void
MonitorClients void
NextClient string
RemoveClient Client
Send string

공개 메소드들

메소드 설명
Close ( Primitive clientName ) : Primitive

Disconnect and close (End) a client.

Disconnect ( Primitive clientName ) : Primitive

Disconnect a client.

GetClients ( ) : Primitive

Get a list of current connected clients.

SendMessage ( Primitive clientName, Primitive message ) : Primitive

Send a message to a client.

Start ( Primitive auto ) : Primitive

Start the server.

Stop ( ) : Primitive

Stop the current server and close all clients.

비공개 메소드들

메소드 설명
ClientMessageDelegate ( string client, string message ) : void
GetClient ( EndPoint endPoint ) : Client
GetClient ( string name ) : Client
Listen ( ) : void
MonitorClients ( ) : void
NextClient ( ) : string
RemoveClient ( string name ) : Client
Send ( string clientName, string message ) : string

메소드 상세

Close() 공개 정적인 메소드

Disconnect and close (End) a client.
public static Close ( Primitive clientName ) : Primitive
clientName Primitive The client name, usually Client1, Client2 etc. /// A list of current clients can be obtained from the method GetClients or found from the ClientConnected event.
리턴 Primitive

Disconnect() 공개 정적인 메소드

Disconnect a client.
public static Disconnect ( Primitive clientName ) : Primitive
clientName Primitive The client name, usually Client1, Client2 etc. /// A list of current clients can be obtained from the method GetClients or found from the ClientConnected event.
리턴 Primitive

GetClients() 공개 정적인 메소드

Get a list of current connected clients.
public static GetClients ( ) : Primitive
리턴 Primitive

SendMessage() 공개 정적인 메소드

Send a message to a client.
public static SendMessage ( Primitive clientName, Primitive message ) : Primitive
clientName Primitive The client name, usually Client1, Client2 etc. /// A list of current clients can be obtained from the method GetClients or found from the ClientConnected event.
message Primitive The message may be any variable including an array.
리턴 Primitive

Start() 공개 정적인 메소드

Start the server.
public static Start ( Primitive auto ) : Primitive
auto Primitive Enable auto message passing "True" or "False". /// If this is used (recommended) then all client data is passed via server to all other clients, /// and no processing of send and receive events is required. /// The data is updated to arrays of data (indexed by client name) that is returned from the client Update methods. /// The auto option should be the same for server and all clients.
리턴 Primitive

Stop() 공개 정적인 메소드

Stop the current server and close all clients.
public static Stop ( ) : Primitive
리턴 Primitive

프로퍼티 상세

_ClientMessageDelegate 공개적으로 정적으로 프로퍼티

public static SmallBasicCallback _ClientMessageDelegate
리턴 SmallBasicCallback

lastClient 공개적으로 정적으로 프로퍼티

public static string lastClient
리턴 string

lastClientConnected 공개적으로 정적으로 프로퍼티

public static string lastClientConnected
리턴 string

lastClientDisconnected 공개적으로 정적으로 프로퍼티

public static string lastClientDisconnected
리턴 string

lastClientMessage 공개적으로 정적으로 프로퍼티

public static string lastClientMessage
리턴 string