Package nattraverso :: Package pynupnp
[show private | hide private]
[frames | no frames]

Package nattraverso.pynupnp

This package offers ways to retreive ip addresses of the machine, and map ports through UPnP devices.

Version: 0.1.0

Author: Raphael Slinckx

Contact: raphael@slinckx.net

Copyright: Copyright 2005

License: LGPL

Submodules
  • soap: This module is a SOAP client using twisted's deferreds.
  • upnp: This module is the heart of the upnp support.
  • upnpxml: This module parse an UPnP device's XML definition in an Object.

Function Summary
twisted.internet.defer.Deferred get_external_ip()
Returns a deferred which will be called with the WAN ip address retreived through UPnP.
twisted.internet.defer.Deferred get_port_mapper()
Returns a deferred which will be called with a UPnPMapper instance.

Variable Summary
str __revision__ = '$id'

Function Details

get_external_ip()

Returns a deferred which will be called with the WAN ip address retreived through UPnP. The ip is a string of the form "x.x.x.x"
Returns:
A deferred called with the external ip address of this host
           (type=twisted.internet.defer.Deferred)

get_port_mapper()

Returns a deferred which will be called with a UPnPMapper instance. This is a nattraverso.portmapper.NATMapper implementation.
Returns:
A deferred called with the UPnPMapper 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