aioupnp/txupnp/constants.py

37 lines
1.1 KiB
Python
Raw Normal View History

2018-07-27 01:49:33 +02:00
POST = "POST"
2018-07-29 04:08:24 +02:00
ROOT = "root"
SPEC_VERSION = "specVersion"
2018-07-27 01:49:33 +02:00
XML_VERSION = "<?xml version=\"1.0\"?>"
FAULT = "{http://schemas.xmlsoap.org/soap/envelope/}Fault"
ENVELOPE = "{http://schemas.xmlsoap.org/soap/envelope/}Envelope"
BODY = "{http://schemas.xmlsoap.org/soap/envelope/}Body"
2018-07-30 23:48:20 +02:00
2018-07-29 04:08:24 +02:00
CONTROL = 'urn:schemas-upnp-org:control-1-0'
SERVICE = 'urn:schemas-upnp-org:service-1-0'
DEVICE = 'urn:schemas-upnp-org:device-1-0'
2018-07-27 01:49:33 +02:00
GATEWAY_SCHEMA = 'urn:schemas-upnp-org:device:InternetGatewayDevice:1'
2018-07-29 04:08:24 +02:00
WAN_SCHEMA = 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'
LAYER_SCHEMA = 'urn:schemas-upnp-org:service:Layer3Forwarding:1'
IP_SCHEMA = 'urn:schemas-upnp-org:service:WANIPConnection:1'
service_types = [
GATEWAY_SCHEMA,
WAN_SCHEMA,
LAYER_SCHEMA,
IP_SCHEMA,
2018-07-30 23:48:20 +02:00
CONTROL,
SERVICE,
DEVICE,
2018-07-29 04:08:24 +02:00
]
2018-07-27 01:49:33 +02:00
SSDP_IP_ADDRESS = '239.255.255.250'
SSDP_PORT = 1900
2018-07-30 23:48:20 +02:00
SSDP_HOST = "%s:%i" % (SSDP_IP_ADDRESS, SSDP_PORT)
2018-07-27 01:49:33 +02:00
SSDP_DISCOVER = "ssdp:discover"
2018-07-29 06:54:16 +02:00
SSDP_ALL = "ssdp:all"
2018-07-30 23:48:20 +02:00
SSDP_BYEBYE = "ssdp:byebye"
SSDP_UPDATE = "ssdp:update"
SSDP_ROOT_DEVICE = "upnp:rootdevice"
line_separator = "\r\n"