bind and setsockopt - Unix

This is a discussion on bind and setsockopt - Unix ; bind returns error when a port is already in use ....some process may be using it or the port may be just port is not used still it is hanging around kernel... how can i kinow the difference between these ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: bind and setsockopt

  1. bind and setsockopt

    bind returns error when a port is already in use ....some process may
    be using it or the port may be just port is not used still it is
    hanging around kernel...

    how can i kinow the difference between these ????

  2. Re: bind and setsockopt

    On Tue, 7 Oct 2008 05:33:16 -0700 (PDT),
    asit wrote:
    > bind returns error when a port is already in use ....some process may
    > be using it or the port may be just port is not used still it is
    > hanging around kernel...
    >
    > how can i kinow the difference between these ????


    Have a look at the following tutorial:

    http://beej.us/guide/bgnet/output/ht...age/bgnet.html

    It answers this question, as well as the other one you had. You could
    also consider buying UNIX Network Programming, Volume 1 (third edition),
    by W. Richard Stevens, Bill Fenner and Andy Rudoff.

    Martien
    --
    |
    Martien Verbruggen | +++ Out of Cheese Error +++ Reinstall
    | Universe and Reboot +++
    |

  3. Re: bind and setsockopt

    Martien Verbruggen wrote:
    > On Tue, 7 Oct 2008 05:33:16 -0700 (PDT),
    > asit wrote:
    >> bind returns error when a port is already in use ....some process may
    >> be using it or the port may be just port is not used still it is
    >> hanging around kernel...
    >>
    >> how can i kinow the difference between these ????

    >
    > Have a look at the following tutorial:
    >
    > http://beej.us/guide/bgnet/output/ht...age/bgnet.html
    >
    > It answers this question, as well as the other one you had. You could
    > also consider buying UNIX Network Programming, Volume 1 (third edition),
    > by W. Richard Stevens, Bill Fenner and Andy Rudoff.
    >

    s/could/should/

    That book's a treasure trove.

    --
    Ian Collins.

+ Reply to Thread