Package nattraverso :: Module portmapper
[show private | hide private]
[frames | no frames]

Module nattraverso.portmapper

Generic NAT Port mapping interface.

TODO: Example

Version: 0.1.0

Author: Raphael Slinckx

Contact: raphael@slinckx.net

Copyright: Copyright 2005

License: LGPL

Classes
NATMapper Define methods to map port objects (as returned by twisted's listenXX).

Function Summary
twisted.internet.defer.Deferred get_port_mapper(proto)
Returns a NATMapper instance, suited to map a port for the given protocol.

Variable Summary
str __revision__ = '$id'

Function Details

get_port_mapper(proto='TCP')

Returns a NATMapper instance, suited to map a port for the given protocol. Defaults to TCP.

For the moment, only upnp mapper is available. It accepts both UDP and TCP.
Parameters:
proto - The protocol: 'TCP' or 'UDP'
           (type=string)
Returns:
A deferred called with a NATMapper instance
           (type=twisted.internet.defer.Deferred)

Variable Details

__revision__

Type:
str
Value:
'$id'                                                                  

Generated by Epydoc 2.1 on Tue Aug 30 14:56:47 2005 http://epydoc.sf.net