On 26/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
If I understand correctly, you're looking for the socket methodgetsockname(), documented at
http://docs.python.org/lib/socket-objects.htmlJeff
Many thanks Jeff, self.server.socket.getsockname() did the trick.
--
--
http://mail.py
If I understand correctly, you're looking for the socket method
getsockname(), documented at
http://docs.python.org/lib/socket-objects.html
Jeff
pgppauvaXgXhK.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
How can I find the port a server is listening on - at the commented
line in the code below. (ie self.serving_on_port_num =
? )
I have googled a lot. :-(
--
class BaseSrvr(SocketServer.ThreadingMixIn, SocketServer.TCPServer):