Functions | |
Functions scope restricted to file | |
int | NewRequestHandler (struct sockaddr *DestAddr, int NumPacket, char **RqPacket) |
Works as a request handler which passes the HTTP request string to multicast channel. | |
int | extractIPv6address (char *url, char *address) |
Extract IPv6 address. | |
int | isUrlV6UlaGua (char *descdocUrl) |
Test if a Url contains an ULA or GUA IPv6 address. | |
void | CreateServicePacket (int msg_type, const char *nt, char *usn, char *location, int duration, char **packet, int AddressFamily, int PowerState, int SleepPeriod, int RegistrationState) |
Creates a HTTP request packet. | |
Variables | |
Variables scope restricted to file | |
constexpr int | MSGTYPE_SHUTDOWN {0} |
Message type. | |
constexpr int | MSGTYPE_ADVERTISEMENT {1} |
Message type. | |
constexpr int | MSGTYPE_REPLY {2} |
Message type. | |
int anonymous_namespace{ssdp_device.cpp}::NewRequestHandler | ( | struct sockaddr * | DestAddr, |
int | NumPacket, | ||
char ** | RqPacket | ||
) |
Works as a request handler which passes the HTTP request string to multicast channel.
[in] | DestAddr | Ip address, to send the reply. |
[in] | NumPacket | Number of packet to be sent. |
[in] | RqPacket |
Definition at line 89 of file ssdp_device.cpp.
|
inline |
Extract IPv6 address.
[in] | url | |
[out] | address | Extracted IPv6 address. |
Definition at line 185 of file ssdp_device.cpp.
int anonymous_namespace{ssdp_device.cpp}::isUrlV6UlaGua | ( | char * | descdocUrl | ) |
Test if a Url contains an ULA or GUA IPv6 address.
[in] | descdocUrl | Url |
Definition at line 226 of file ssdp_device.cpp.
void anonymous_namespace{ssdp_device.cpp}::CreateServicePacket | ( | int | msg_type, |
const char * | nt, | ||
char * | usn, | ||
char * | location, | ||
int | duration, | ||
char ** | packet, | ||
int | AddressFamily, | ||
int | PowerState, | ||
int | SleepPeriod, | ||
int | RegistrationState | ||
) |
Creates a HTTP request packet.
Depending on the input parameter, it either creates a service advertisement request or service shutdown request etc.
[in] | msg_type | type of the message (Search Reply, Advertisement or Shutdown). |
[in] | nt | ssdp type. |
[in] | usn | unique service name ( go in the HTTP Header). |
[in] | location | Location URL. |
[in] | duration | Service duration in sec. |
[out] | packet | Output buffer filled with HTTP statement. |
[in] | AddressFamily | Address family of the HTTP request. |
[in] | PowerState | PowerState as defined by UPnP Low Power. |
[in] | SleepPeriod | SleepPeriod as defined by UPnP Low Power. |
[in] | RegistrationState | RegistrationState as defined by UPnP Low Power. |
Definition at line 246 of file ssdp_device.cpp.
|
constexpr |
Message type.
Definition at line 68 of file ssdp_device.cpp.
|
constexpr |
Message type.
Definition at line 69 of file ssdp_device.cpp.
|
constexpr |
Message type.
Definition at line 70 of file ssdp_device.cpp.