A table for errno values by linux sockets?

This is a discussion on A table for errno values by linux sockets? within the Networking/Device Communication forums, part of the General Programming Boards category; I was wondering if anyone knows of good tables that actually give the error code's number, symbolic name and explanation. ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 10: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, 08:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21