简体   繁体   中英

Unix domain sockets and select

Just to make sure sure, one can call select on a Unix Domain socket. Correct? Also one can mix different types of sockets in a select statement. Is that correct?

Yes, that is correct. The only type of file descriptor you should not put in a select call is a regular file, because regular files are always considered ready, even if reading from them would block.

of course,a socket/pipe/unix domain/msgqueue and something like that will be ok~

you may use sockpair right now , select / poll / epoll can get it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM