ENOENT收到网络套接字上的recv系统调用

时间:2016-03-11 12:12:55

标签: network-programming boost-asio

在我的C ++客户端中,我使用boost apis来执行向服务器发送和接收数据。 但偶尔当我从插座中读取时,会报告系统错误2,该错误对应于" ENOENT" (没有这样的文件或目录)。

任何人都可以告诉在recv / recvmsg系统调用中返回ENOENT的条件是什么?

1 个答案:

答案 0 :(得分:1)

There was mis-interpretation of error code. system error code 2 in boost corresponds to EOF which occurs when sending entity has closed the socket while receiving entity is still performing read