Define methods to map port objects (as returned by twisted's
listenXX). This allows NAT to be traversed from incoming packets.
Currently the only implementation of this class is the UPnP Mapper,
which can map UDP and TCP ports, if an UPnP Device exists.
Method Summary |
|
__init__(self)
|
twisted.internet.defer.Deferred
|
get_port_mappings (self)
Returns a deferred that will be called with a dictionnary of the
existing mappings. |
|
info (self,
port)
Returns the existing mapping for the given port object. |
twisted.internet.defer.Deferred
|
map (self,
port)
Create a mapping for the given twisted's port object. |
twisted.internet.defer.Deferred
|
unmap (self,
port)
Remove an existing mapping for the given twisted's port object. |
|
_check_valid_port (self,
port)
Various Port object validity checks. |