예제 #1
0
 internal void OnMessageSent(Client client)
 {
     MessageSent(this, ServerEventArgs.NewEvent(client));
 }
예제 #2
0
 private void server_OnConnectionClosed(Server sender, ServerEventArgs eventArgs)
 {
     HandleNewMsg(Environment.NewLine + eventArgs.Client.Id.ToString() + ": Disconnected!");
 }
예제 #3
0
 internal void OnDisconnected(Client client)
 {
     Disconnected(this, ServerEventArgs.NewEvent(client));
 }
예제 #4
0
 void server_OnConnected(Server sender, ServerEventArgs eventArgs)
 {
     HandleNewMsg(Environment.NewLine + eventArgs.Client.Id.ToString() + ": Connected!");
     server.Send(eventArgs.Client.Id, "Hello ClientId " + eventArgs.Client.Id.ToString());
 }