Re: Bug? sockaddr structure
Eric Morgan (eric_morgan@library.lib.ncsu.edu)
23 Sep 1994 09:52:13 U
RE>Bug? sockaddr structure
> I just noticed that the socket address structure is packed using "c4" - four
signed chars. This should be four unsigned chars, "C4". On my SunOS system it
seems to make no difference (i tried it using both formats connecting to a
number of systems) but SunOS has a good record of automatically guessing right
about these things - it may matter on other systems.
I edited wwwhttp.pl and changed "$thataddr = pack('c4', split(/\./, $host));"
to "$thataddr = pack('C4', split(/\./, $host));" Unfortunately, I still get
"connection refused" on my AXP running OS/F.
Eric Morgan
NCSU Libraries