Subject: Re: TCP/IP, other protocols, callable from Scheme
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 19 Apr 2001 02:15:39 GMT
Newsgroups: comp.lang.scheme
Message-ID: <9blhob$1c8s3$1@fido.engr.sgi.com>
John R. Strohm <strohm@airmail.net> wrote:
+---------------
| I have a need for some basic networking protocol stuff in Scheme.
| I need IP, UDP, and a PPP stack that can be encapsulated in something else.
...
| Any suggestions on where to start looking?  I'd really rather not reinvent
| the wheel.
+---------------

Sorry, you may have to!! The problem is that you've specified UDP. Many
(most?) Schemes have some sort of *TCP* support built-in (or available as
dynamically-loadable extensions), e.g., see MzScheme's networking intrinsics
<URL:http://www.cs.rice.edu/CS/PLT/packages/doc/mzscheme/node131.htm>, which
include "tcp-listen/tcp-accept" and "tcp-connect" for server & client sides,
respectively. With those, you can write a simple-minded web client or server
in just a few lines of Scheme.

YMMV, but I haven't seen any Scheme implementations with UDP support...


-Rob

-----
Rob Warnock, 31-2-510		rpw3@sgi.com
SGI Network Engineering		<URL:http://reality.sgi.com/rpw3/>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA