as3.0 socket 用C++做服务器,发送三条数据,as3.0 做客户端,接收到的数据只有一条,这是怎么回事?
C++代码MyMassage*massage=*sendDataList.begin();SOCKETst=massage->st;charchr[30]={0};str...
C++代码
MyMassage * massage = *sendDataList.begin();
SOCKET st = massage->st;
char chr[30] = {0};
strcpy(chr,massage->chr);
delete massage;
m_socket.SendMsg(st,"zfsdfsdf 1233sd");
m_socket.SendMsg(st," rrtdsdf");
m_socket.SendMsg(st,"hello");
sendDataList.erase(sendDataList.begin());
actionscript3.0 代码
if(_soket.bytesAvailable){
var msg:String = _soket.readUTFBytes(_soket.bytesAvailable);
trace(msg);
} 展开
MyMassage * massage = *sendDataList.begin();
SOCKET st = massage->st;
char chr[30] = {0};
strcpy(chr,massage->chr);
delete massage;
m_socket.SendMsg(st,"zfsdfsdf 1233sd");
m_socket.SendMsg(st," rrtdsdf");
m_socket.SendMsg(st,"hello");
sendDataList.erase(sendDataList.begin());
actionscript3.0 代码
if(_soket.bytesAvailable){
var msg:String = _soket.readUTFBytes(_soket.bytesAvailable);
trace(msg);
} 展开
2个回答
2014-04-14
展开全部
不会做啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询