Thread: A table for errno values by linux sockets?

  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    131

    A table for errno values by linux sockets?

    I was wondering if anyone knows of good tables that actually give the error code's number, symbolic name and explanation.

    http://www.hmug.org/man/2/connect.php
    has all the symbolic names and explanations, but no error codes. Uner linux, I can get the error codes from the errno variable, but I can't link the number with the symbolic names nor the description.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    But the man page gives the symbolic names.
    And the symbolic name to numeric value translation is in errno.h.
    Also, look at perror() for printing out error messages, and strerror() for getting a descriptive text.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    131
    I found the symbolic names and numbers from the errno.h file and strerror also gives me a hint about the error. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM
  2. Linux? Windows Xp?
    By VooDoo in forum Linux Programming
    Replies: 15
    Last Post: 07-31-2002, 08:18 AM
  3. Need help with Linux sockets
    By junbin in forum Linux Programming
    Replies: 1
    Last Post: 07-21-2002, 12:42 PM
  4. Linux Under Windows
    By Strut in forum Linux Programming
    Replies: 3
    Last Post: 05-27-2002, 08:09 PM
  5. linux vs linux?
    By Dreamerv3 in forum Linux Programming
    Replies: 5
    Last Post: 01-22-2002, 09:39 AM