0

I am trying to learn how to write a non-blocking socket. Can anyone please explain that what roles do ioctl() and fcntl() play in this (i.e. what are the roles of file descriptors in creating a non-blocking socket. A code snippet as an example with explanation will be much appreciated.

Mac
  • 3
  • 3

1 Answers1

0

You use one or the other to set O_NONBLOCK. Surely you already discovered that?

user207421
  • 305,947
  • 44
  • 307
  • 483