Re: The bind command.
- --- In email@example.com, "Dukelow, Don" <dukelow@...>
>chapter 20 the first to server/client examples don't work. I first
> I'm going through the book "Perl by Example" by Ellie Quigley. In
tried it on a HP UX system and the server program just
wouldn't "fork". All I get is the die if fork fails error.
> Since the book says the program was tested on a Sun UNIX Itried it on a Solaris 10 system and I get the error.
>part of it.
> Server startrd
> Socket OK!
> Bind Address family not supported by protocol family
> I thought that base Perl came with the Socket.pm and that bind was
>Do you specify the address family in your socket creation?
> What am I missing?
> Don Dukelow
> HP License Team
> Hewlett-Packard Company
> Tel: 810-728-3388
> e-mail: dukelow@...
> [Non-text portions of this message have been removed]
10047 Address family not supported by protocol family.
An address incompatible with the requested protocol was used. All
sockets are created with an associated "address family" (i.e.
AF_INET for Internet Protocols) and a generic protocol type (i.e.
SOCK_STREAM). This error will be returned if an incorrect protocol
is explicitly requested in the socket() call, or if an address of
the wrong family is used for a socket, e.g. in sendto().