Z
zdy0155
Unregistered / Unconfirmed
GUEST, unregistred user!
我用 socket 传文件,
将传送的大小定为4092
if (text=="recvice")
{ count=count+4092;
if (total-count>4092)
{ file->Read(buf,4092);
send_socket->Socket->SendBuf(buf,4092);
}
else
{ length=total-count;
file->Read(buf,length);
send_socket->Socket->SendBuf(buf,length);
}
}
这样一来一往
怎么说有10055 错误啊,这个错误是缓存不够,可我怎么处理啊!
还有我的程序运行多次后,can't new socket
这个怎么处理啊
将传送的大小定为4092
if (text=="recvice")
{ count=count+4092;
if (total-count>4092)
{ file->Read(buf,4092);
send_socket->Socket->SendBuf(buf,4092);
}
else
{ length=total-count;
file->Read(buf,length);
send_socket->Socket->SendBuf(buf,length);
}
}
这样一来一往
怎么说有10055 错误啊,这个错误是缓存不够,可我怎么处理啊!
还有我的程序运行多次后,can't new socket
这个怎么处理啊