예제 #1
0
 public static void Send(string str)
 {
     if (tcp_client != null)
     {
         try
         {
             tcp_client.Send(str);
         }
         catch (System.IO.IOException)
         { }
     }
 }
예제 #2
0
 public static void Connect(string server_ip, int server_port, string username)
 {
     tcp_client = new Networking.TH_TcpClient(server_ip, server_port);
     tcp_client.Send(username);
 }