예제 #1
0
 public void SendData(MessageObject message)
 {
     if (message != null)
     {
         clientSocket.Send(message.BinarySerialization());
     }
 }
예제 #2
0
 public void SendData(MessageObject message, Socket client)
 {
     sendingThread = new Thread(() =>
     {
         client.Send(message.BinarySerialization());
     });
     sendingThread.Start();
     Console.WriteLine("Data Sent to " + client.RemoteEndPoint);
 }