Exemplo n.º 1
0
        private void Receive_ServerSenddata(NetReceivePackage package)
        {
            scBroadcastIP mServerSendData = Protocol3Utility.getData <scBroadcastIP> (package.buffer.Array, package.buffer.Offset, package.buffer.Count);

            DebugSystem.Log("Client: " + mServerSendData.Ip);
            nReceiveCount++;
        }
Exemplo n.º 2
0
        private void Receive_ServerSenddata(NetPackage package)
        {
            scBroadcastIP mServerSendData = Protocol3Utility.getData <scBroadcastIP> (package.buffer, 0, package.buffer.Length);

            DebugSystem.Log("Server: " + mServerSendData.Ip);
            nReceiveCount++;
        }
Exemplo n.º 3
0
        private void Receive_ServerSenddata(NetPackage package)
        {
            //DebugSystem.Log ("Client packageLength: " + package.Length);
            csChatData mServerSendData = Protocol3Utility.getData <csChatData> (package);

            //DebugSystem.Log ("Client: " + mServerSendData.Id + " | " + mServerSendData.TalkMsg);
            UDPServerTest.nReceiveCount++;
        }
Exemplo n.º 4
0
        private void Receive_ServerSenddata(ClientPeer peer, NetPackage package)
        {
            //DebugSystem.Log ("Server packageLength: " + package.nOrderId + "|" + package.nPackageId + " | " + package.nGroupCount + " | " + package.Length);
            csChatData mServerSendData = Protocol3Utility.getData <csChatData> (package);

            //mServerSendData.Id = peer.getPort ();
            //DebugSystem.Log ("Server: " + mServerSendData.TalkMsg);
            nServerReceiveCount++;
            peer.SendNetData(UdpNetCommand.COMMAND_TESTCHAT, mServerSendData);
        }