Home | Trees | Index | Help |
---|
Package nattraverso :: Module ipdiscover :: Class LocalNetworkMulticast |
|
AbstractDatagramProtocol
--+ |DatagramProtocol
--+ |object
--+ | LocalNetworkMulticast
Method Summary | |
---|---|
__init__(self,
*args,
**kwargs)
| |
Datagram received, we callback the IP address. | |
twisted.internet.defer.Deferred
|
Launch the discovery of an UPnP device on the local network. |
Inherited from DatagramProtocol | |
Called due to error from write in connected mode. | |
Inherited from AbstractDatagramProtocol | |
| |
Make sure startProtocol is called. | |
Make sure stopProtocol is called. | |
Make a connection to a transport and a server. | |
Called when a transport is connected to this protocol. | |
Called when the transport is disconnected. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Inherited from AbstractDatagramProtocol | |
bool |
noisy = True
|
int |
numPorts = 0 |
NoneType |
transport = None |
Method Details |
---|
datagramReceived(self, dgram, addr)Datagram received, we callback the IP address. |
discover(self)Launch the discovery of an UPnP device on the local network. You should always call this after having created the object.
>>> result = LocalNetworkMulticast().discover().addCallback(got_upnpdevice_ip)
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Aug 30 14:56:47 2005 | http://epydoc.sf.net |