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 585 of file ssdp_common.cpp.
SSDPResultData * SSDPResultData_new | ( | ) |
Constructor.
Definition at line 25 of file SSDPResultData.cpp.
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 667 of file ssdp_common.cpp.
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 681 of file ssdp_common.cpp.
int readFromSSDPSocket | ( | SOCKET | socket | ) |
This function reads the data from the ssdp socket.
[in] | socket | SSDP socket. |
Definition at line 694 of file ssdp_common.cpp.
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 782 of file ssdp_common.cpp.
void SSDPResultData_delete | ( | SSDPResultData * | p | ) |
Destructor.
Definition at line 39 of file SSDPResultData.cpp.
SSDPResultData * SSDPResultData_dup | ( | const SSDPResultData * | p | ) |
Copy Constructor.
Definition at line 66 of file SSDPResultData.cpp.
int SSDPResultData_assign | ( | SSDPResultData * | p, |
const SSDPResultData * | q | ||
) |
Assignment operator.
Definition at line 53 of file SSDPResultData.cpp.
const UpnpDiscovery * SSDPResultData_get_Param | ( | const SSDPResultData * | p | ) |
SSDPResultData_get_Param.
Definition at line 77 of file SSDPResultData.cpp.
int SSDPResultData_set_Param | ( | SSDPResultData * | p, |
const UpnpDiscovery * | n | ||
) |
SSDPResultData_set_Param.
Definition at line 81 of file SSDPResultData.cpp.
void * SSDPResultData_get_Cookie | ( | const SSDPResultData * | p | ) |
SSDPResultData_get_Cookie.
Definition at line 91 of file SSDPResultData.cpp.
int SSDPResultData_set_Cookie | ( | SSDPResultData * | p, |
void * | n | ||
) |
SSDPResultData_set_Cookie.
Definition at line 93 of file SSDPResultData.cpp.
Upnp_FunPtr SSDPResultData_get_CtrlptCallback | ( | const SSDPResultData * | p | ) |
SSDPResultData_get_CtrlptCallback.
Definition at line 99 of file SSDPResultData.cpp.
int SSDPResultData_set_CtrlptCallback | ( | SSDPResultData * | p, |
Upnp_FunPtr | n | ||
) |
SSDPResultData_set_CtrlptCallback.
Definition at line 103 of file SSDPResultData.cpp.