当前位置: 技术问答>linux和unix
求助,udp文件传输发送端发送完了,接收端却接受到一半就bad address?
来源: 互联网 发布时间:2017-01-07
本文导语: 如题, writebytes = write(receivefilefd,receivecontext.data,receivecontext.counts); //bzero((char *)&receivecontext,sizeof(struct context)); //memset(receivecontext.data,0,sizeof(receivecontext.data)); if(writebytes
如题,
writebytes = write(receivefilefd,receivecontext.data,receivecontext.counts);
//bzero((char *)&receivecontext,sizeof(struct context));
//memset(receivecontext.data,0,sizeof(receivecontext.data));
if(writebytes
writebytes = write(receivefilefd,receivecontext.data,receivecontext.counts);
//bzero((char *)&receivecontext,sizeof(struct context));
//memset(receivecontext.data,0,sizeof(receivecontext.data));
if(writebytes