메소드 | 설명 | |
---|---|---|
AsyncSocketsServer ( int port ) : System |
Initializes a new instance of the AsyncSocketsServer class.
|
|
Broadcast ( string message ) : void |
Broadcast a string to all connected clients.
|
|
BroadcastExceptClient ( string message, int clientId ) : void |
Broadcast a string to all connected clients except one.
|
|
Close ( ) : void | ||
Start ( ) : void |
Start listening and accepting clients.
|
메소드 | 설명 | |
---|---|---|
AcceptCallback ( IAsyncResult asyncResult ) : void |
Called when a client was connected.
|
|
ClientConnectionDisconnected ( ClientInfo clientInfo ) : void |
Called when a client disconnects. Removes the client from the collection.
|
public AsyncSocketsServer ( int port ) : System | ||
port | int | /// Port that the server should use. /// |
리턴 | System |
public Broadcast ( string message ) : void | ||
message | string | The string to broadcast |
리턴 | void |
public BroadcastExceptClient ( string message, int clientId ) : void | ||
message | string | The string to broadcast |
clientId | int | The client which the server shouldn't send to. |
리턴 | void |