Page 1 of 1

net-accept additional info

Posted: Thu Aug 16, 2007 3:38 pm
by Dmi
Hi!

How can I get IP and port of the originatior of incoming tcp/ip connection?
(net-sessions) seems to only provide numerical descriptor now.

Posted: Thu Aug 16, 2007 4:38 pm
by Lutz
Nothing has changed in net-sessions, it always only reported the sockets of currently active connections.

Use (net-peer <socket>) to find out the remote IP and port of a connection.

Lutz

Posted: Thu Aug 16, 2007 4:52 pm
by Dmi
oh! thanks! (probably my very old code was mistaken)