| 
 | 
	
5#
 
 
 楼主 |
发表于 2014-12-1 22:23:38
|
只看该作者
 
 
 
 
        private void button3_Click(object sender, EventArgs e) 
        { 
            int i; 
            string userID = this.textBox1.Text.Trim(); 
            i = int.Parse(userID); 
 
            string message = this.textBox2.Text.Trim(); 
            byte[] byteArray = System.Text.Encoding.Default.GetBytes(message); 
 
            AnyChatServerSDK.BRAS_TransBuffer(i, byteArray, byteArray.Length); 
                //public static extern int BRAS_SendBufToUser(int userId, byte[] buf, int len); 
            //public static extern int BRAS_TransBuffer(int dwUserId, byte[] lpBuf, int dwLen); 
        }在业务服务器这里触发了透明通道函数后       
   是不是在客户端  将触发这个函数   
        /// <summary> 
        /// 透明通道数据回调函数定义 
        /// </summary> 
        /// <param name="userId">用户ID</param> 
        /// <param name="buf">缓冲区</param> 
        /// <param name="len">缓冲区长度</param> 
        /// <param name="userValue">附带信息</param> 
        public delegate void TransBufferCallBack(int userId, IntPtr buf, int len, int userValue);   
 
那么就是不知道在这里怎么把   buf的数据获取出来? |   
 
 
 
 |