標(biāo)題: send [打印本頁] 作者: 會(huì)當(dāng)凌絕頂聰 時(shí)間: 2012-12-14 09:25 標(biāo)題: send ssize_t send(int sockfd, const void *buf, size_t len, int flags);
如果在非阻塞下 send 的數(shù)據(jù)長度是0 那么返回什么 ?返回0算錯(cuò)誤 嗎? 作者: heartless_cu 時(shí)間: 2012-12-14 09:37
RETURN VALUE
On success, these calls return the number of characters sent. On
error, -1 is returned, and errno is set appropriately.