newLISP Fan Club

Forum => newLISP newS => Topic started by: Dmi on August 16, 2007, 08:38:14 AM

Title: net-accept additional info
Post by: Dmi on August 16, 2007, 08:38:14 AM
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.
Title:
Post by: Lutz on August 16, 2007, 09:38:22 AM
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
Title:
Post by: Dmi on August 16, 2007, 09:52:19 AM
oh! thanks! (probably my very old code was mistaken)