[Top][All Lists]

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

Re: New patch for server sockets and datagram (UDP) support.

From: Helmut Eller
Subject: Re: New patch for server sockets and datagram (UDP) support.
Date: Thu, 7 Mar 2002 16:18:11 +0100

address@hidden (Kim F. Storm) writes:

> What do you think?

You are adding many features at the same time; it's a bit hard to see
what your problem actually is :-)

I think it's a _very good_ idea to rename open-network-stream to
something different, because this frees you from being backward

Have you considered to use keyword arguments, e.g., in the spirit of
the make-socket function found in Allegro CL?

It's probably a pain to parse keyword arguments in C, but it frees you
from overloading positional arguments in an unnatural way.  It would
also be quite nice to use from Lisp.  Another advantage is that you
could add new arguments without much backward compatibility

Another point: if someone wants to bind a socket to a specific
interface he must be able to specify the IP address, the hostname is
IMHO not sufficient for this.  Any ideas for this problem?  I propose
to make gethostbyname and related functions available to Lisp.  IP
addresses could be represented by vectors of 4 bytes (it's a pity that
32bit don't fit into a ELisp fixnum).

Yet another point: please, please, please make accept-connection a
separate function.  Then one could make a _blocking_ accept; also
accept with a timeout argument would be possible.  Would this add any
implementation complexity?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]