Beispiel #1
0
        private static void _client_Connected(object sender, EventArgs e)
        {
            NetworkTransferObjects obj = new NetworkTransferObjects();

            obj.ProtocolMessage = ProtocolOfExchange.GetNewVersionClient;
            _client.Send(obj);
        }
 private void SendReqest(ProtocolOfExchange req, NetworkTransferObjects obj)
 {
     if (m_IsConnectedToServer || req == ProtocolOfExchange.CheckConnection)
     {
         obj.ProtocolMessage = req;
         m_TcpClient.Send(obj);
     }
 }