c - How to ensure that UDP socket is closed? -


i have client server application. client sends commands server , receives data on udp socket channel.
each time socket file created different id.
executing command 10000 times using script , ebadf. problem suspecting close() not closes socket descriptor immediately. have read so_linger options think works tcp socket.

is there way ensure close() closes socket descriptor.

thanks

the actual problem here aren't checking result of creating socket in first place, or you're closing socket , reusing it, or corrupting handle value, encountering ebadf later on. ebadf result of prior programming error. not failure close. find out actual error is. don't guess.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -