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++; }
private void Receive_ServerSenddata(NetPackage package) { scBroadcastIP mServerSendData = Protocol3Utility.getData <scBroadcastIP> (package.buffer, 0, package.buffer.Length); DebugSystem.Log("Server: " + mServerSendData.Ip); nReceiveCount++; }
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++; }
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); }