Opened 17 years ago
Closed 16 years ago
#45 closed enhancement (fixed)
add rref.getPeer() to learn IAddress of remote peer
Reported by: | Brian Warner | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.2.8 |
Component: | usability | Version: | 0.2.4 |
Keywords: | Cc: |
Description
For logging purposes, it would be nice if it were easy to find out the IP address and port number of the remote end of a RemoteReference's connection. The current technique is:
addr = rref.tracker.broker.transport.getPeer()
which returns a twisted.internet.interfaces.IAddress
provider, meaning that if it is an !IPv4Address then you can look at its .host (dotted-quad string) and .port (int) attributes. (some day, if/when we add UNIX-domain or IPv6 support, it might be instances of a different class, and those attributes may not be valid).
Change History (2)
comment:1 Changed 16 years ago by
Milestone: | undecided → 0.2.8 |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Done, in [6dec9a11a02e1c7b3703342810c2582b606a4329]