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() + "]"); //} }