Exemplo n.º 1
0
 public void Close()
 {
     Socket1.Close();
     Socket2.Close();
 }
Exemplo n.º 2
0
 private void CloseConnection()
 {
     Socket1.Close();
     Socket1 = null;
     Console.WriteLine("Connection of client index: " + Index + " closed and destroyed.");
 }