[plug] Re: sockets
Tim Bowden
bowden at iinet.net.au
Mon May 19 13:53:28 WST 2003
On Mon, 2003-05-19 at 13:09, Russell Steicke wrote:
> How about this:
>
> Sockets are a generic interface to a network. A socket exists in an
> "address family" (or protocol family). This socket is in the AF_INET
> (PF_INET) address family, for internet protocol version 4. After a
> server socket is created, it gets bound to an address, with bind(2).
> (Sockets used by clients go through a different life cycle.) In
> AF_INET, the socket address includes a port number (generally the same
> as a tcp or udp port number from /etc/services) and an IP address.
>
> In this case, the bind() has failed either because some other process is
> listening to that socket address, or the port number is below 1024 and
> the calling process is not run by root.
>
> SEE ALSO
>
> socket(2), bind(2), socket(7), ip(7).
>
> More than 5 lines, sorry.
>
Forgiven. I will have to take your word on all that ;-)
Thanks,
Tim Bowden
More information about the plug
mailing list