Méthode | Description | |
---|---|---|
NewConnection ( Socket sockClient ) : void |
Add the given connection to our list of clients Note we have a new friend Send a welcome to the new client Setup a callback to recieve data
|
|
OnConnectRequest ( IAsyncResult ar ) : void |
Callback used when a client requests a connection. Accpet the connection, adding it to our list and setup to accept more connections.
|
|
OnRecievedData ( IAsyncResult ar ) : void |
Get the new data and send it out to all other connections. Note: If not data was recieved the connection has probably died.
|
|
start ( ) : void | ||
stop ( ) : void |
public NewConnection ( Socket sockClient ) : void | ||
sockClient | Socket | Connection to keep |
Résultat | void |
public OnConnectRequest ( IAsyncResult ar ) : void | ||
ar | IAsyncResult | |
Résultat | void |
public OnRecievedData ( IAsyncResult ar ) : void | ||
ar | IAsyncResult | |
Résultat | void |