UPNP server integrated into rqbit.
How to use: https://github.com/ikatson/rqbit/pull/208
This commit is contained in:
parent
e8bd7ca7e5
commit
9e7b656f0b
34 changed files with 2420 additions and 234 deletions
9
crates/upnp-serve/src/constants.rs
Normal file
9
crates/upnp-serve/src/constants.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
pub const UPNP_KIND_ROOT_DEVICE: &str = "upnp:rootdevice";
|
||||
pub const UPNP_KIND_MEDIASERVER: &str = "urn:schemas-upnp-org:device:MediaServer:1";
|
||||
|
||||
pub const SOAP_ACTION_CONTENT_DIRECTORY_BROWSE: &[u8] =
|
||||
b"\"urn:schemas-upnp-org:service:ContentDirectory:1#Browse\"";
|
||||
pub const SOAP_ACTION_GET_SYSTEM_UPDATE_ID: &[u8] =
|
||||
b"\"urn:schemas-upnp-org:service:ContentDirectory:1#GetSystemUpdateID\"";
|
||||
|
||||
pub const CONTENT_TYPE_XML_UTF8: &str = "text/xml; charset=\"utf-8\"";
|
||||
Loading…
Add table
Add a link
Reference in a new issue