C send() to socket and select() function
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.
精彩评论