コード例 #1
0
        public void Send(NetworkRequest request)
        {
            if (!socketReady) {
            return;
            }

            GamePacket packet = request.packet;

            byte[] bytes = packet.getBytes();
            theStream.Write(bytes, 0, bytes.Length);

            //if (request.request_id != Constants.CMSG_HEARTBEAT) {
            Debug.Log("Sent Request No. " + request.request_id + " [" + request.ToString() + "]");
            //}
        }
コード例 #2
0
        public void Send(NetworkRequest request)
        {
            if (!socketReady)
            {
                return;
            }

            GamePacket packet = request.packet;

            byte[] bytes = packet.getBytes();
            theStream.Write(bytes, 0, bytes.Length);

            //if (request.request_id != Constants.CMSG_HEARTBEAT) {
            Debug.Log("Sent Request No. " + request.request_id + " [" + request.ToString() + "]");
            //}
        }