>>> David Place writes:
> Is there an easy way to implement socket-server
> from these parts. The scsh manual didn't enlighten me on this
> topic.
Well the scsh manual has a chapter on networking that discusses out high
level socket routines. while bind-listen-accept-loop is poorly named, it
does make it easy to create a simple server. included below an excerpt
from scsh/doc/cheat.txt. the old scheme 48 routines were somewhat
limited from what i remember, encouraging us to write a generic socket
implementation that would let you have full access to the system.
-bri
* Networking
** High Level Socket Routines
*** clients
(socket-connect protocol-family/internet socket-type name port) -> socket
(socket-connect protocol-family/unix socket-type pathname) -> socket
*** server
(bind-listen-accept-loop protocol-family/internet proc port) -> does-not-return
(bind-listen-accept-loop protocol-family/unix proc pathname) -> does-not-return
proc is a procedure of two arguments: a socket and a socket-address
|