Ejemplo n.º 1
0
 static void f_Connected(object sender, EasyTCP.TCP.Events.ClientArgs e)
 {
     //received connection.
     p.Add(e.Client);
     e.Client.Received     += Client_Received;
     e.Client.Disconnected += Client_Disconnected;
     //send data to it.
     e.Client.Send(Encoding.ASCII.GetBytes("Data for Client."));
 }
Ejemplo n.º 2
0
 static void Client_Disconnected(object sender, EasyTCP.TCP.Events.ClientArgs e)
 {
     Console.WriteLine("Client Disconnected from Server.");
 }
Ejemplo n.º 3
0
 static void x_Connected(object sender, EasyTCP.TCP.Events.ClientArgs e)
 {
     Console.WriteLine("Client Connected To Server.");
 }