Thread: Socket not initilizing properly

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    8

    Question Socket not initilizing properly

    Greetings!

    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,

    -IEatGreyFoxes.

    [edit] Using Windows XP, Bloodshed Dev-C++ version 4. [/edit]
    Last edited by IEatGreyFoxes; 05-17-2004 at 01:27 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 05:17 PM
  2. Socket Help - Multiple Clients
    By project95talon in forum C Programming
    Replies: 5
    Last Post: 11-17-2005, 02:51 AM
  3. socket programming in linux
    By crazeinc in forum C Programming
    Replies: 1
    Last Post: 05-27-2005, 07:40 PM
  4. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 10:33 AM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM