Functions that are commonly used for SSDP Discovery. More...
| int | unique_service_name (char *cmd, SsdpEvent *Evt) |
| Fills the fields of the event structure like DeviceType, Device UDN and Service Type. | |
| SsdpSearchType | ssdp_request_type1 (char *cmd) |
| This function figures out the type of the SSDP search in the request. | |
| int | ssdp_request_type (char *cmd, SsdpEvent *Evt) |
| Starts filling the SSDP event structure based upon the request received. | |
| int | readFromSSDPSocket (SOCKET socket) |
| This function reads the data from the ssdp socket. | |
| int | get_ssdp_sockets (MiniServerSockArray *out) |
| Creates the IPv4 and IPv6 ssdp sockets required by the control point and device operation. | |
| SSDPResultData * | SSDPResultData_new () |
| Constructor. | |
| void | SSDPResultData_delete (SSDPResultData *p) |
| Destructor. | |
| SSDPResultData * | SSDPResultData_dup (const SSDPResultData *p) |
| Copy Constructor. | |
| int | SSDPResultData_assign (SSDPResultData *p, const SSDPResultData *q) |
| Assignment operator. | |
| const UpnpDiscovery * | SSDPResultData_get_Param (const SSDPResultData *p) |
| SSDPResultData_get_Param. | |
| int | SSDPResultData_set_Param (SSDPResultData *p, const UpnpDiscovery *n) |
| SSDPResultData_set_Param. | |
| void * | SSDPResultData_get_Cookie (const SSDPResultData *p) |
| SSDPResultData_get_Cookie. | |
| int | SSDPResultData_set_Cookie (SSDPResultData *p, void *n) |
| SSDPResultData_set_Cookie. | |
| Upnp_FunPtr | SSDPResultData_get_CtrlptCallback (const SSDPResultData *p) |
| SSDPResultData_get_CtrlptCallback. | |
| int | SSDPResultData_set_CtrlptCallback (SSDPResultData *p, Upnp_FunPtr n) |
| SSDPResultData_set_CtrlptCallback. | |
Functions that are commonly used for SSDP Discovery.
These functions are needed for both SSDP Devices and SSDP Control Points, for example to network read or write to/from an SSDP socket. They are conditional compiled with
#if INCLUDE_DEVICE_APIS == 1 || INCLUDE_CLIENT_APIS == 1
| int unique_service_name | ( | char * | cmd, |
| SsdpEvent * | Evt | ||
| ) |
Fills the fields of the event structure like DeviceType, Device UDN and Service Type.
| [in] | cmd | Service Name string. |
| [out] | Evt | The SSDP event structure partially filled by all the function. |
Definition at line 660 of file ssdp_common.cpp.
Here is the caller graph for this function:| SSDPResultData * SSDPResultData_new | ( | ) |
Constructor.
Definition at line 27 of file SSDPResultData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| SsdpSearchType ssdp_request_type1 | ( | char * | cmd | ) |
This function figures out the type of the SSDP search in the request.
| [in] | cmd | command came in the ssdp request. |
Definition at line 742 of file ssdp_common.cpp.
Here is the caller graph for this function:| int ssdp_request_type | ( | char * | cmd, |
| SsdpEvent * | Evt | ||
| ) |
Starts filling the SSDP event structure based upon the request received.
| [in] | cmd | command came in the ssdp request. |
| [out] | Evt | The event structure partially filled by this function. |
Definition at line 756 of file ssdp_common.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int readFromSSDPSocket | ( | SOCKET | socket | ) |
This function reads the data from the ssdp socket.
| [in] | socket | SSDP socket. |
Definition at line 769 of file ssdp_common.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int get_ssdp_sockets | ( | MiniServerSockArray * | out | ) |
Creates the IPv4 and IPv6 ssdp sockets required by the control point and device operation.
| [out] | out | Array of SSDP sockets. |
Definition at line 851 of file ssdp_common.cpp.
Here is the call graph for this function:| void SSDPResultData_delete | ( | SSDPResultData * | p | ) |
Destructor.
Definition at line 41 of file SSDPResultData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| SSDPResultData * SSDPResultData_dup | ( | const SSDPResultData * | p | ) |
Copy Constructor.
Definition at line 68 of file SSDPResultData.cpp.
Here is the call graph for this function:| int SSDPResultData_assign | ( | SSDPResultData * | p, |
| const SSDPResultData * | q | ||
| ) |
Assignment operator.
Definition at line 55 of file SSDPResultData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const UpnpDiscovery * SSDPResultData_get_Param | ( | const SSDPResultData * | p | ) |
SSDPResultData_get_Param.
Definition at line 79 of file SSDPResultData.cpp.
Here is the caller graph for this function:| int SSDPResultData_set_Param | ( | SSDPResultData * | p, |
| const UpnpDiscovery * | n | ||
| ) |
SSDPResultData_set_Param.
Definition at line 83 of file SSDPResultData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void * SSDPResultData_get_Cookie | ( | const SSDPResultData * | p | ) |
SSDPResultData_get_Cookie.
Definition at line 93 of file SSDPResultData.cpp.
Here is the caller graph for this function:| int SSDPResultData_set_Cookie | ( | SSDPResultData * | p, |
| void * | n | ||
| ) |
SSDPResultData_set_Cookie.
Definition at line 95 of file SSDPResultData.cpp.
Here is the caller graph for this function:| Upnp_FunPtr SSDPResultData_get_CtrlptCallback | ( | const SSDPResultData * | p | ) |
SSDPResultData_get_CtrlptCallback.
Definition at line 101 of file SSDPResultData.cpp.
Here is the caller graph for this function:| int SSDPResultData_set_CtrlptCallback | ( | SSDPResultData * | p, |
| Upnp_FunPtr | n | ||
| ) |
SSDPResultData_set_CtrlptCallback.
Definition at line 105 of file SSDPResultData.cpp.
Here is the caller graph for this function: