Implementation of a SSDP server.
The notify_received and search_received methods are called when the
appropriate type of datagram is received by the server.
|
__init__(self,
server_name,
xml_description_filename,
max_age=1800,
receive_notify=True)
Constructor for the SSDPServer class. |
source code
|
|
|
is_running(self)
Returns True if the SSDPServer is running, False otherwise. |
source code
|
|
|
|
|
stop(self)
Sends bye bye notifications and stops the SSDPServer. |
source code
|
|
|
|
|
clear_device_list(self)
Clears the device list. |
source code
|
|
|
discovered_device_failed(self,
dev)
Device could not be fully built, so forget it. |
source code
|
|
boolean
|
|
|
|
|
|
|
announce_device(self)
Announces the device. |
source code
|
|
|
|
|
|
|
|
|
|
|
_register(self,
usn,
st,
location,
server,
cache_control,
where='remote')
Registers a service or device. |
source code
|
|
|
_local_register(self,
usn,
st,
location,
server,
cache_control)
Registers locally a new service or device. |
source code
|
|
|
|
|
_renew_notifications(self)
Renew notifications (sends a notify |
source code
|
|
|
|
|
|
|
|
|
_callback(self,
name,
*args)
Performs callbacks for events. |
source code
|
|
|
_cleanup(self)
Cleans the SSDPServer by removing known devices and internal cache. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|