getpeername() on stdin?

Nobody nobody at nowhere.com
Sat Nov 2 23:27:09 EDT 2013


On Fri, 01 Nov 2013 14:55:38 -0400, random832 wrote:

> If it's possible to get this information with only the fd, then why does
> socket.fromfd require them?

The only person who can answer that is whoever came up with
socket.fromfd() in the first place.

I initially suspected that it might have been a Windows limitation, but
socket.fromfd() is only available on Unix.




More information about the Python-list mailing list