64 memset(&p->
m_DestAddr, 0,
sizeof(
struct sockaddr_storage));
374const struct sockaddr_storage*
380 const struct sockaddr_storage* buf) {
387 memset(&p->
m_DestAddr, 0,
sizeof(
struct sockaddr_storage));
const UpnpString * UpnpDiscovery_get_Ext(const UpnpDiscovery *p)
int UpnpDiscovery_set_Ext(UpnpDiscovery *p, const UpnpString *s)
int UpnpDiscovery_strncpy_Os(UpnpDiscovery *p, const char *s, size_t n)
int UpnpDiscovery_set_Date(UpnpDiscovery *p, const UpnpString *s)
const char * UpnpDiscovery_get_Location_cstr(const UpnpDiscovery *p)
int UpnpDiscovery_set_Location(UpnpDiscovery *p, const UpnpString *s)
int UpnpDiscovery_strcpy_ServiceVer(UpnpDiscovery *p, const char *s)
const UpnpString * UpnpDiscovery_get_Os(const UpnpDiscovery *p)
UpnpString * m_ServiceVer
const char * UpnpDiscovery_get_ServiceType_cstr(const UpnpDiscovery *p)
int UpnpDiscovery_strncpy_DeviceID(UpnpDiscovery *p, const char *s, size_t n)
size_t UpnpDiscovery_get_DeviceID_Length(const UpnpDiscovery *p)
int UpnpDiscovery_set_Os(UpnpDiscovery *p, const UpnpString *s)
const char * UpnpDiscovery_get_DeviceType_cstr(const UpnpDiscovery *p)
int UpnpDiscovery_set_Expires(UpnpDiscovery *p, int n)
void UpnpDiscovery_delete(UpnpDiscovery *q)
int UpnpDiscovery_strcpy_ServiceType(UpnpDiscovery *p, const char *s)
void UpnpDiscovery_clear_Date(UpnpDiscovery *p)
const struct sockaddr_storage * UpnpDiscovery_get_DestAddr(const UpnpDiscovery *p)
const UpnpString * UpnpDiscovery_get_Date(const UpnpDiscovery *p)
const char * UpnpDiscovery_get_Date_cstr(const UpnpDiscovery *p)
int UpnpDiscovery_set_DeviceType(UpnpDiscovery *p, const UpnpString *s)
const UpnpString * UpnpDiscovery_get_ServiceVer(const UpnpDiscovery *p)
UpnpDiscovery * UpnpDiscovery_dup(const UpnpDiscovery *q)
struct sockaddr_storage m_DestAddr
void UpnpDiscovery_clear_Os(UpnpDiscovery *p)
const UpnpString * UpnpDiscovery_get_ServiceType(const UpnpDiscovery *p)
int UpnpDiscovery_strncpy_Date(UpnpDiscovery *p, const char *s, size_t n)
int UpnpDiscovery_strcpy_Date(UpnpDiscovery *p, const char *s)
const UpnpString * UpnpDiscovery_get_Location(const UpnpDiscovery *p)
int UpnpDiscovery_strncpy_ServiceType(UpnpDiscovery *p, const char *s, size_t n)
int UpnpDiscovery_set_DestAddr(UpnpDiscovery *p, const struct sockaddr_storage *buf)
int UpnpDiscovery_set_ServiceType(UpnpDiscovery *p, const UpnpString *s)
size_t UpnpDiscovery_get_Ext_Length(const UpnpDiscovery *p)
int UpnpDiscovery_set_ErrCode(UpnpDiscovery *p, int n)
int UpnpDiscovery_strncpy_Ext(UpnpDiscovery *p, const char *s, size_t n)
int UpnpDiscovery_strncpy_Location(UpnpDiscovery *p, const char *s, size_t n)
int UpnpDiscovery_set_ServiceVer(UpnpDiscovery *p, const UpnpString *s)
size_t UpnpDiscovery_get_Location_Length(const UpnpDiscovery *p)
void UpnpDiscovery_clear_Location(UpnpDiscovery *p)
int UpnpDiscovery_strcpy_DeviceType(UpnpDiscovery *p, const char *s)
const char * UpnpDiscovery_get_Os_cstr(const UpnpDiscovery *p)
UpnpString * m_DeviceType
int UpnpDiscovery_get_ErrCode(const UpnpDiscovery *p)
const char * UpnpDiscovery_get_DeviceID_cstr(const UpnpDiscovery *p)
int UpnpDiscovery_strncpy_DeviceType(UpnpDiscovery *p, const char *s, size_t n)
void UpnpDiscovery_clear_DestAddr(UpnpDiscovery *p)
int UpnpDiscovery_strcpy_Os(UpnpDiscovery *p, const char *s)
int UpnpDiscovery_assign(UpnpDiscovery *p, const UpnpDiscovery *q)
void UpnpDiscovery_clear_Ext(UpnpDiscovery *p)
int UpnpDiscovery_strcpy_DeviceID(UpnpDiscovery *p, const char *s)
void UpnpDiscovery_clear_ServiceVer(UpnpDiscovery *p)
void UpnpDiscovery_clear_DeviceType(UpnpDiscovery *p)
UpnpDiscovery * UpnpDiscovery_new()
size_t UpnpDiscovery_get_Date_Length(const UpnpDiscovery *p)
UpnpString * m_ServiceType
const char * UpnpDiscovery_get_Ext_cstr(const UpnpDiscovery *p)
size_t UpnpDiscovery_get_ServiceVer_Length(const UpnpDiscovery *p)
void UpnpDiscovery_clear_DeviceID(UpnpDiscovery *p)
int UpnpDiscovery_get_Expires(const UpnpDiscovery *p)
void UpnpDiscovery_clear_ServiceType(UpnpDiscovery *p)
int UpnpDiscovery_set_DeviceID(UpnpDiscovery *p, const UpnpString *s)
int UpnpDiscovery_strcpy_Ext(UpnpDiscovery *p, const char *s)
size_t UpnpDiscovery_get_ServiceType_Length(const UpnpDiscovery *p)
const UpnpString * UpnpDiscovery_get_DeviceType(const UpnpDiscovery *p)
int UpnpDiscovery_strcpy_Location(UpnpDiscovery *p, const char *s)
size_t UpnpDiscovery_get_Os_Length(const UpnpDiscovery *p)
int UpnpDiscovery_strncpy_ServiceVer(UpnpDiscovery *p, const char *s, size_t n)
size_t UpnpDiscovery_get_DeviceType_Length(const UpnpDiscovery *p)
const char * UpnpDiscovery_get_ServiceVer_cstr(const UpnpDiscovery *p)
const UpnpString * UpnpDiscovery_get_DeviceID(const UpnpDiscovery *p)
Header file for UpnpDiscovery methods.
Internal implementation of the class UpnpString.
PUPNP_Api int UpnpString_set_StringN(UpnpString *p, const char *s, size_t n)
Sets the string from a pointer to char using a maximum of N chars.
PUPNP_Api int UpnpString_set_String(UpnpString *p, const char *s)
Sets the string from a pointer to char.
PUPNP_Api size_t UpnpString_get_Length(const UpnpString *p)
Returns the length of the string.
PUPNP_Api UpnpString * UpnpString_new(void)
Constructor.
PUPNP_Api const char * UpnpString_get_String(const UpnpString *p)
Returns the pointer to char.
PUPNP_Api void UpnpString_delete(UpnpString *p)
Destructor.
PUPNP_Api void UpnpString_clear(UpnpString *p)
Clears the string, sets its size to zero.
Specifications to be portable with sockets between different platforms.