Functions | |
Functions scope restricted to file | |
| int | send_stateless (sockaddr *a_dest_saddr, int a_num_packet, char **a_rq_packet) |
| Works as a request handler which passes the HTTP request string to multicast channel. | |
| int | NewRequestHandler (struct sockaddr *a_dest_saddr, int a_num_packet, char **a_rq_packet) |
| 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}::send_stateless | ( | sockaddr * | a_dest_saddr, |
| int | a_num_packet, | ||
| char ** | a_rq_packet | ||
| ) |
Works as a request handler which passes the HTTP request string to multicast channel.
Definition at line 85 of file ssdp_device.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int anonymous_namespace{ssdp_device.cpp}::NewRequestHandler | ( | struct sockaddr * | a_dest_saddr, |
| int | a_num_packet, | ||
| char ** | a_rq_packet | ||
| ) |
Works as a request handler which passes the HTTP request string to multicast channel.
| [in] | a_dest_saddr | Ip address, to send the reply. |
| [in] | a_num_packet | Number of packets to be sent. |
| [in] | a_rq_packet | Pointer to Array of pointer for multicast packets to send. |
Definition at line 143 of file ssdp_device.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Extract IPv6 address.
| [in] | url | |
| [out] | address | Extracted IPv6 address. |
Definition at line 178 of file ssdp_device.cpp.
Here is the caller graph for this function:| 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 219 of file ssdp_device.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 239 of file ssdp_device.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
constexpr |
Message type.
Definition at line 76 of file ssdp_device.cpp.
|
constexpr |
Message type.
Definition at line 77 of file ssdp_device.cpp.
|
constexpr |
Message type.
Definition at line 78 of file ssdp_device.cpp.