![]() |
| | #1 |
| Registered User Join Date: Sep 2004
Posts: 78
| FD_SET trouble using winsock. Code: SOCKET test; fd_set read_check; FD_SET(test, &read_check); EDIT: I'm using the mingw c/c++ compilers and Code::Blocks. |
| antex is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,693
| Did you initialise the socket variable test? Did you FD_ZERO the set before using it? |
| Salem is offline | |
| | #3 |
| Registered User Join Date: Sep 2004
Posts: 78
| I thought I did, but when I created a new project just for testing it all worked perfectly. The trouble is in a socket class I'm writing so I have to double check the class code it seems. If it wasn't for your reply I would not have checked this because I was absolutely sertain I had initialized the socket and also FD_ZERO the set. Thank you! |
| antex is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Winsock issues | tjpanda | Windows Programming | 3 | 12-04-2008 08:32 AM |
| Winsock asynchronous socket + MessageBox() = trouble? | jmd15 | Networking/Device Communication | 8 | 02-07-2006 02:50 PM |
| Winsock Messaging Program | Morgul | Windows Programming | 13 | 04-25-2005 04:00 PM |
| Where do I initialize Winsock and catch messages for it? | Lithorien | Windows Programming | 10 | 12-30-2004 12:11 PM |
| winsock | pode | Networking/Device Communication | 2 | 09-26-2003 12:45 AM |