[usocket-devel] patch: adding *remote-host* *remote-port* to socket-server stream handler functions

Hi all: I had a need to know the remote socket and port for a tcp connection, however the socket-server handler function did not have *remote-host* and *remote-port* set (oddly it does set these for datagram sockets). socket-server is mostly what I want, save this feature, which I have modified the sources locally. If it's alright with the devs, could this simple patch be committed to the server.lisp file in the usocket tree? Thanks, -Matt

Hi, Matt Thanks for your suggestion, your patch is accepted and will be part of next release. So far you're the only one I know whom are using the TCP version of SOCKET-SERVER, please feel free to let me if this facility have other lost features. Regards, Chun Tian (binghe) 在 2011-11-11,02:41, Matthew Curry 写道:
Hi all:
I had a need to know the remote socket and port for a tcp connection, however the socket-server handler function did not have *remote-host* and *remote-port* set (oddly it does set these for datagram sockets). socket-server is mostly what I want, save this feature, which I have modified the sources locally.
If it's alright with the devs, could this simple patch be committed to the server.lisp file in the usocket tree?
Thanks,
-Matt <usocket-server.patch.txt>_______________________________________________ usocket-devel mailing list usocket-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/usocket-devel
participants (2)
-
Chun Tian (binghe)
-
Matthew Curry