[usocket-devel] Add (socket-option ... :tcp-no-delay) for stream-usocket?

Hi, I like the new socket-option functions and I think methods socket-option (stream-usocket (eql :tcp-no-delay)) (setf socket-option) (t stream-usocket (eql :tcp-no-delay)) should be added. This addition would enable stream sockets obtained from socket-accept to operate with TCP_NODELAY. As far as I can see, this is currently not possible without unportable code like (setf (sb-bsd-sockets::sockopt-tcp-nodelay (usocket::socket s)) t) What do you think? Kind regards, Jan

Hi Jan Thanks for your suggestion, the feature for :tcp-no-delay will be added soon and easily. I think at least CLISP/SBCL/Allegro/Clozure/LispWorks will be supported first, rest platforms may need some more investigations. The only thing I haven't decided, is to use :TCP-NO-DELAY or just :NO-DELAY for the option name, depend on related exist feature provided by CLISP. Regards, Chun Tian (binghe) Il giorno 13/feb/2013, alle ore 22:35, Jan Moringen <jmoringe@techfak.uni-bielefeld.de> ha scritto:
Hi,
I like the new socket-option functions and I think methods
socket-option (stream-usocket (eql :tcp-no-delay)) (setf socket-option) (t stream-usocket (eql :tcp-no-delay))
should be added.
This addition would enable stream sockets obtained from socket-accept to operate with TCP_NODELAY. As far as I can see, this is currently not possible without unportable code like
(setf (sb-bsd-sockets::sockopt-tcp-nodelay (usocket::socket s)) t)
What do you think?
Kind regards, Jan
_______________________________________________ usocket-devel mailing list usocket-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/usocket-devel

On Thu, 2013-02-14 at 17:15 +0800, Chun Tian (binghe) wrote:
Thanks for your suggestion, the feature for :tcp-no-delay will be added soon and easily. I think at least CLISP/SBCL/Allegro/Clozure/LispWorks will be supported first, rest platforms may need some more investigations. The only thing I haven't decided, is to use :TCP-NO-DELAY or just :NO-DELAY for the option name, depend on related exist feature provided by CLISP.
Thanks, I appreciate it very much. Kind regards, Jan
participants (2)
-
Chun Tian (binghe)
-
Jan Moringen