| | |
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
- Winsock Multi-Client Servers (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- mysql_query(): supplied argument is not a valid MySQL-Link (PHP)
- 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 |
* adobe ansi api array asterisks binarysearch calculate centimeter char character cm convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile createprocess() csyntax directory feet fflush fgets file floatingpointvalidation fork frequency givemetehcodez global gtkgcurlcompiling gtkwinlinux hacking highest homework i/o inches infiniteloop input interest intmain() iso keyboard kilometer km linked linkedlist linux linuxsegmentationfault list locate lowest match meter microsoft mqqueue mysql number oddnumber odf open opendocumentformat openwebfoundation owf pattern pdf performance posix power probleminc program programming pyramidusingturboccodes read recv recvblocked repetition reversing scanf scheduling segmentationfault send single socketprograming socketprogramming stack standard string suggestions systemcall unix urboc user variable voidmain() wab whythiscodecausesegmentationfault win32api windows.h windowsapi






