getsockopt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • absolute0
    New Member
    • Feb 2008
    • 8

    getsockopt

    int status = getsockopt(sfd, SOL_SOCKET,SO_E RROR,&soe,&sol) ;

    In the above example, if getsockopt returns -1, that is an error has occured, would soe be set?
  • Arulmurugan
    New Member
    • Jan 2008
    • 90

    #2
    Originally posted by absolute0
    int status = getsockopt(sfd, SOL_SOCKET,SO_E RROR,&soe,&sol) ;

    In the above example, if getsockopt returns -1, that is an error has occured, would soe be set?

    No, check the errno val..

    Comment

    Working...