public void Post(short cmd, byte[] bytes, Action <byte[]> callback) { _Buffer.Clear(); _Buffer.PutBytes(bytes); //NINFO 这个为了帮助server去掉client httpRequest头 int msgContentLen = _Buffer.GetLength(); _Buffer.PutInt(msgContentLen); byte[] bs = _Buffer.ToArray(); //Debug.Log("客户端发送len :" + bs.Length+" msgContentLen:"+msgContentLen); //for (int i = 0; i < bs.Length; i++) //{ // Debug.LogError("client send: i:" + i + "--->" + bs[i]); //} StartCoroutine(Post(bs, callback, false)); }