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

Module nattraverso.pynupnp.upnp

This module is the heart of the upnp support. Device discover, ip discovery and port mappings are implemented here.

Version: 0.1.0

Authors:
Raphael Slinckx, Anthony Baxter

Contact: raphael@slinckx.net

Copyright: Copyright 2005

License: LGPL

Classes
UPnPDevice Represents an UPnP device, with the associated infos, and remote methods.
UPnPMapper This is the UPnP port mapper implementing the NATMapper interface.
UPnPProtocol The UPnP Device discovery udp multicast twisted protocol.

Exceptions
UPnPError A generic UPnP error, with a descriptive message as content.

Function Summary
twisted.internet.defer.Deferred search_upnp_device()
Check the network for an UPnP device.

Variable Summary
str __revision__ = '$id'
str _UPNP_MCAST = '239.255.255.250'
int _UPNP_PORT = 1900                                                                  
str _UPNP_SEARCH_REQUEST = 'M-SEARCH * HTTP/1.1\r\nHost:239....

Function Details

search_upnp_device()

Check the network for an UPnP device. Returns a deferred with the UPnPDevice instance as result, if found.
Returns:
A deferred called with the UPnPDevice instance
           (type=twisted.internet.defer.Deferred)

Variable Details

__revision__

Type:
str
Value:
'$id'                                                                  

_UPNP_MCAST

Type:
str
Value:
'239.255.255.250'                                                      

_UPNP_PORT

Type:
int
Value:
1900                                                                  

_UPNP_SEARCH_REQUEST

Type:
str
Value:
'''M-SEARCH * HTTP/1.1\r
Host:239.255.255.250:1900\r
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1\r
Man:"ssdp:discover"\r
MX:3\r
\r
'''                                                                    

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