net-accept additional info

Notices and updates
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

net-accept additional info

Post 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.
WBR, Dmi

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

Post by Dmi »

oh! thanks! (probably my very old code was mistaken)
WBR, Dmi

Locked