Find the answer to your Linux question:
Results 1 to 2 of 2
I write socket program in linux. server socket can't bind by unexpected exit. I want to handle when it can't bind socket....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Location
    South Korea
    Posts
    19

    socket programming ( handle bind exception )


    I write socket program in linux.

    server socket can't bind by unexpected exit.

    I want to handle when it can't bind socket.

  2. #2
    Linux User
    Join Date
    Jul 2004
    Location
    Poland
    Posts
    368
    Check out return value of bind() function, if it is -1 then the call failed.
    "I don't know what I'm running from
    And I don't know where I'm running to
    There's something deep and strange inside of me I see"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •