I am attempting a server program. It compiles fine, but when I run it, my error checking says that bind and listen aren't working correctly. I used WSAGetLastError on both of them, and I get the same error code: 10038 ("The descriptor is not a socket." -Microsoft website). My code is attatched. Is there something really obvious to this problem?
Thankyou for your time,
 Using Windows XP, Bloodshed Dev-C++ version 4. [/edit]