| | |
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 |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi






