LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   is a socket already opened? fcntl(); (https://www.linuxquestions.org/questions/programming-9/is-a-socket-already-opened-fcntl-%3B-364819/)

Thinking 09-19-2005 06:24 AM

is a socket already opened? fcntl();
 
hiho@ll

is it possible to check if a socket is opened already?

e.g. using fcntl()??

thx@ll

zeropash 09-19-2005 09:47 AM

cnat you use something like getsockname
and check if it suceeds or not. (ex EBADF would mean its bad fd)


All times are GMT -5. The time now is 03:55 PM.