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