| | |
Checking if the socket is valid in C
![]() |
Depends on the socket that you are using. If you are using the berkely sockets, they have (I think) -1 as the value for the invalid socket. Look up the documentation for this. The Winsock API uses the INVALID_SOCKET value to determine an invalid socket. (Look up the Winsock API Documentation)
バルサミコ酢やっぱいらへんで
![]() |
Similar Threads
- mysql_query(): supplied argument is not a valid MySQL-Link (PHP)
- Winsock Multi-Client Servers (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- modify script (Perl)
- spyware sheriff (Viruses, Spyware and other Nasties)
- Basic Error Checking (C++)
- Socket 478 question (Motherboards, CPUs and RAM)
- Samba roaming profiles (*nix Software)
Other Threads in the C Forum
- Previous Thread: implement semaphore without the use of while or any if statement
- Next Thread: Gems programming
| Thread Tools | Search this Thread |
* ansi api array arrays binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() directory dynamic execv fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez grade graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o inches include infiniteloop input interest intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft mysql oddnumber open opendocumentformat openwebfoundation pdf pointer posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






