Subject: problem with perl5 and connect
To: None <current-users@NetBSD.ORG>
From: Jon Buller <firstname.lastname@example.org>
Date: 06/01/1995 14:28:35
Has anyone seen this problem with perl5.001e before? (I've had the same
problem with 5.001 too...) The code is an exact copy of the code in
the perlipc man page explaining how to setup a client program. The perl
make test ran fine before the install, and I'm running out of ideas.
jonb@bullbox% pt mail.metronet.com 110
connect: Connection timed out at pt line 26.
jonb@bullbox% head -30 pt | tail 10
$this = pack($sockaddr, AF_INET, 0, $thisaddr);
$that = pack($sockaddr, AF_INET, $port, $thataddr);
socket(S, PF_INET, SOCK_STREAM, $proto) || die "socket: $!";
bind(S, $this) || die "bind: $!";
connect(S, $that) || die "connect: $!";
select(S); $| = 1; select(stdout);
jonb@bullbox% telnet mail.metronet.com 110
Connected to mail.metronet.com.
Escape character is '^]'.
+OK UCB Pop server (version 1.831beta+timeout) at mail starting.
+OK Pop server at mail signing off.
Connection closed by foreign host.
Notice that the name lookup goes fine, even binding to the socket, but it
won't connect... 8-( Any help would be appreciated,