메소드 | 설명 | |
---|---|---|
GetClientId ( |
Get the client ID of the specified client.
|
|
GetConnectedClients ( ) : |
Get all connected clients to the server
|
|
PrintAllClientInfo ( ) : void |
Print all client information
|
|
PrintClientInfo ( |
Print the client information
|
|
SendData ( object client, byte message, int size ) : void |
Send data to the specified client.
|
|
TCPServer ( int Port, TransmittedCBType aTransmittedCBHandler, ReceivedCBType aReceivedCBHandler, ClientFoundCBType aClientFoundCBHandler, ClientLostCBType aClientLostCBHandler ) : System |
TCP server constuctor, this instanciate the server on the specified port.
|
메소드 | 설명 | |
---|---|---|
ReceiveThreadHandler ( object client ) : void |
Handles the data received from a client.
|
|
ServerListeningThreadHandler ( ) : void |
Internal Listen thread, each time a server is created a listening thread is also created.
|
public GetClientId ( |
||
client | ||
리턴 | int |
public GetConnectedClients ( ) : |
||
리턴 |
public PrintClientInfo ( |
||
client | ||
리턴 | void |
public SendData ( object client, byte message, int size ) : void | ||
client | object | |
message | byte | |
size | int | |
리턴 | void |
public TCPServer ( int Port, TransmittedCBType aTransmittedCBHandler, ReceivedCBType aReceivedCBHandler, ClientFoundCBType aClientFoundCBHandler, ClientLostCBType aClientLostCBHandler ) : System | ||
Port | int | |
aTransmittedCBHandler | TransmittedCBType | |
aReceivedCBHandler | ReceivedCBType | |
aClientFoundCBHandler | ClientFoundCBType | |
aClientLostCBHandler | ClientLostCBType | |
리턴 | System |