SIGCHLD, fork, listen
Donn Cave
donn at u.washington.edu
Fri Sep 24 14:28:19 EDT 1999
Quoth Bill Eldridge <bill at hk.rfa.org>:
| Another option would be to use inetd, but I need to
| do some host/address verification, and couldn't figure
| out how to latch onto that kind of socket info from
| a new spawned inetd handler using Python. Ideas?
Would this work?
sock = socket.fromfd(0)
print sock.getpeername()
inetd should give you the socket descriptor on unit 0.
Donn Cave, University Computing Services, University of Washington
donn at u.washington.edu
More information about the Python-list
mailing list