Example #1
0
        private SendIdMessages GetSendIdMessage(ClientHandler clientHandler)
        {
            IPEndPoint serverIp = (IPEndPoint)tcpSocket.LocalEndPoint;

            return(new SendIdMessages(DateTime.Now, serverIp.Address, serverIp.Port, clientHandler.id));
        }
Example #2
0
 public void SendMessageToClient(Messages message, ClientHandler clientHandler)
 {
     clientHandler.tcpSocket.Send(messageSerializer.Serialize(message));
 }