——有关 send()的疑惑!———请热烈讨论

qq_13939330 2004-08-19 05:18:40
int send(
SOCKET s,
const char FAR *buf,
int len,
int flags
);

在这个函数中,返回多少字节,是否表示对方已成功接收到了
这么多字节数据呢?

既然TCP/IP是可靠的,而msdn上说好像并不表示!请大家热烈讨论!!
...全文
109 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
oyljerry 2004-08-19
  • 打赏
  • 举报
回复
它只负责发送了多少字节成功
jruv 2004-08-19
  • 打赏
  • 举报
回复
参考http://community.csdn.net/Expert/topic/3286/3286682.xml?temp=.2896387
xdljf 2004-08-19
  • 打赏
  • 举报
回复
看看msdn
Return Values
If no error occurs, send returns the total number of bytes sent, which can be less than the number indicated by len for nonblocking sockets. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.
没有说明对方已经收到了,只说了发送成功

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧