开发者

C send() to socket and select() function

开发者 https://www.devze.com 2023-04-08 12:30 出处:网络
I want to send(socketfd, ...) and I\'m using the select() function. Should this file descriptor be in the writefds, or in the readfds开发者_高级运维?readfds are for sockets you want to read from, writ

I want to send(socketfd, ...) and I'm using the select() function. Should this file descriptor be in the writefds, or in the readfds开发者_高级运维?


readfds are for sockets you want to read from, writefds for those you want to write to. So writefds in your case.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号