"my_sys_socket.ph did not r

Eric Morgan (eric_morgan@library.lib.ncsu.edu)
16 Sep 1994 13:19:14 U


"my_sys_socket.ph did not return a true value"



As mentioned earlier, I can not use "get" to connect to my NCSA httpd 1.3
server running under OS/F 2.0. I get "connection refused."

I replaced wwwhttp.pl with a new version from Roy. I still get "connection
refused."

I then used both Jack's and Roy's "socket fixer" programs. Jack's fixer
(socket-fixer.pl) returns the following output:

sub AF_INET {2};
sub PF_INET {2};
sub SOCK_DGRAM {2};
sub SOCK_STREAM {1};

Roy's (socket-fixer.c) does this:

sub AF_INET { 2; }
sub PF_INET { 2; }
sub SOCK_DGRAM { 2; }
sub SOCK_STREAM { 1; }

First of all, why are they different, and does it matter?

Originally, after copying Roy's output to "my_sys_socket.ph" and replacing the
reqire call to "sys/socket.ph" with "my_sys_socket.ph" I got an error from
"get" telling my that my_sys_socket.ph did not return a value.

In my finite wisdom, I edited my_sys_socket.ph like this:

sub AF_INET { 2; }
sub PF_INET { 2; }
sub SOCK_DGRAM { 2; }
sub SOCK_STREAM { 1; }
1;

Tricky, huh?

In any event, this doesn't work either. I still get "connection refused".

Eric "Still Stumped And I Haven't Gotten To MOMSpider Yet" Morgan
NCSU Libraries