[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: |
Stefan Monnier |
Subject: |
Re: New patch for server sockets and datagram (UDP) support. |
Date: |
Fri, 08 Mar 2002 16:03:14 -0500 |
> "Stefan Monnier" <monnier+gnu/address@hidden> writes:
>
> > > > > The following special call returns t iff a given KEY VALUE
> > > > > pair is supported on this system:
> > > > > (make-network-process :feature KEY VALUE) */)
> > > >
> > > > Hmm... this looks a bit strange. Can you give some examples?
> > > > Especially, what do you supply as VALUE?
> > > >
> > >
> > > It simply tests whether using KEY VALUE as arguments to
> > > make-network-stream
> > > is supported, e.g. :datagram t, :nowait t, :family 'local.
> >
> > I suggest to use `subfeatures' for that:
> >
> > (provide 'network '(:datagram :nowait :family ...))
>
> I don't want to invent something new here if it isn't needed, but the
> problem here is that the proper setings here are determined at
> compile-time, so it's not just a question of putting a (provide...)
> line somewhere in a lisp file -- since that information is not
> available to lisp [that's why I provided the :feature interface].
Then put the call to `feature' in the C code.
> > so you can then check
> >
> > (featurep 'network :datagram)
> >
> But how do you test for availability of :family 'local ?
Whichever way you feel like, e.g. (featurep 'network :family:local).
I guess I just don't understand the question. Also, it's often
good enough to just call make-network-process and see if it succeeds.
You only really need to provide/use `featurep' in order to know whether
something would be ignored or not.
Stefan
- I have installed the patch for server sockets and datagram (UDP) support., (continued)
- I have installed the patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/17
- Re: New patch for server sockets and datagram (UDP) support., Helmut Eller, 2002/03/07
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/07
- Re: New patch for server sockets and datagram (UDP) support., Helmut Eller, 2002/03/07
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/07
- Re: New patch for server sockets and datagram (UDP) support., Helmut Eller, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Helmut Eller, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Stefan Monnier, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support.,
Stefan Monnier <=
- Re: New patch for server sockets and datagram (UDP) support., Richard Stallman, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/13
- Re: New patch for server sockets and datagram (UDP) support., Mario Lang, 2002/03/07
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/07
- Re: New patch for server sockets and datagram (UDP) support., Richard Stallman, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Kim F. Storm, 2002/03/08
- Re: New patch for server sockets and datagram (UDP) support., Helmut Eller, 2002/03/08
Re: Non-blocking open-network-stream, Helmut Eller, 2002/03/02