Results 1 to 2 of 2
Hi,
Can any one explain what is the below command doing.
Code:
flags = fcntl(m_sock, F_GETFL);
if (fcntl(m_sock, F_SETFL, flags & (~ O_NONBLOCK) ) == -1)
Whether it is trying ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-10-2012 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 8
fcntl
Hi,
Can any one explain what is the below command doing.
Whether it is trying for blocking or non-blocking?Code:flags = fcntl(m_sock, F_GETFL); if (fcntl(m_sock, F_SETFL, flags & (~ O_NONBLOCK)) == -1)
Thanks,
Veda
- 07-11-2012 #2Linux Newbie
- Join Date
- Jun 2012
- Location
- SF Bay area
- Posts
- 101


Reply With Quote

