[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tcp-connect error



I developed some nifty networking code on a Windows box with MzScheme.
It puts a nice OO wrapper around Internet connections established with
tcp-connect. Unfortunately, the same code does not work on my Linux box
(SuSE 6.3, kernel 2.4.0test6). It seems that tcp-connect is encountering
problems.

[overcode@linux] overcode$ mzscheme
Welcome to MzScheme version 102, Copyright (c) 1995-2000 PLT (Matthew
Flatt)
> (tcp-connect "localhost" 23)
#<tcp-input-port>
#<tcp-output-port>

Ok, it worked once.

> (tcp-connect "127.0.0.1" 23)
tcp-connect: connection to 127.0.0.1, port 23 failed (at step 4:
Resource temporarily unavailable; errno=11)
> (tcp-connect "localhost" 23)
tcp-connect: connection to localhost, port 23 failed (at step 4:
Resource temporarily unavailable; errno=11)

Then it fails.

> (tcp-connect "www.google.com" 80)
tcp-connect: connection to www.google.com, port 80 failed (at step 4:
Resource temporarily unavailable; errno=11)

Unless California just got nuked, Google should be there :)

Here's some general machine info:

[overcode@linux] overcode$ uname -a
Linux linux 2.4.0-test6 #4 Sun Aug 13 20:47:27 CDT 2000 i686 unknown
[overcode@linux] overcode$ /sbin/ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3856  Metric:1
          RX packets:98 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:216.88.127.208  P-t-P:216.88.127.10 
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1514  Metric:1
          RX packets:410 errors:0 dropped:0 overruns:0 frame:0
          TX packets:488 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 

Any suggestions appreciated. I ran these tests immediately after a
reboot, and I know my network connection is working.

Thanks!
-John