Re: non-blocking socket accept

From: <Marc.Furrer_at_di.epfl.ch>
Date: Fri, 28 Apr 95 08:24:37 +0200

> I could write a new socket-accept-connection that returns that
> actually creates a new socket, but before I do that I thought
> I'd see if there's a way to do this with the primitives provided.
>
> Thanks!
> Drew

I don't think it is possible, because the server socket is lost.

I think it is time to start going through the socket interface, maybe
define a new sock package, with all the latest requirement. From my
experience, I would say that:

1) modify (socket-accept-connection sock)
   it should return a new socket, connected to the client.

2) had new functions
   (socket-ready? s) (socket-in-ready? s) (socket-out-ready? s)
   that return #t if data is available on the socket

What are you feelings about it ?

Marc
--
Furrer Marc 		    EPFL DI-LTI, 1015 Lausanne, Suisse
Marc.Furrer_at_di.epfl.ch      +41 21 693 29 07 / 66 00 (Fax)
                            http://ltiwww.epfl.ch/~furrer
--
You are a wise man my friend.
Not yet sir. But with your help, I am learning.
    -- Riker and Data, "The Measure of a Man", stardate 42523.7
Received on Fri Apr 28 1995 - 08:26:22 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST