예제 #1
0
        public void SendData(Socket clientSocket, MessageObject message)
        {
            sendThread = new Thread(() => {
                byte[] dataToSend = message.BinarySerialize();
                clientSocket.Send(dataToSend);
            });

            sendThread.Start();
        }
예제 #2
0
 public void SendData(MessageObject message)
 {
     clientSocket.Send(message.BinarySerialize());
 }