UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
anonymous_namespace{ssdp_common.cpp} Namespace Reference

Functions

Functions scope restricted to file
void free_ssdp_event_handler_data (void *the_data)
 Frees the ssdp request.
 
int valid_ssdp_msg (http_message_t *hmsg)
 Does some quick checking of the ssdp msg.
 
int start_event_handler (void *Data)
 Parses the message and dispatches it to a handler which handles the ssdp request msg.
 
void ssdp_event_handler_thread (void *the_data)
 This function is a thread that handles SSDP requests.
 
int create_ssdp_sock_v4 (SOCKET *ssdpSock)
 Create an SSDP IPv4 socket.
 
int create_ssdp_sock_v6 (SOCKET *ssdpSock)
 Create an SSDP IPv6 socket.
 
int create_ssdp_sock_v6_ula_gua (SOCKET *ssdpSock)
 Create an SSDP IPv6 ULA_GUA socket.
 

Function Documentation

◆ free_ssdp_event_handler_data()

void anonymous_namespace{ssdp_common.cpp}::free_ssdp_event_handler_data ( void *  the_data)

Frees the ssdp request.

Parameters
[in]the_datassdp_thread_data structure. This structure contains SSDP request message.

Definition at line 69 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valid_ssdp_msg()

int anonymous_namespace{ssdp_common.cpp}::valid_ssdp_msg ( http_message_t hmsg)
inline

Does some quick checking of the ssdp msg.

Returns
1 if msg is valid, else 0.
Parameters
[in]hmsgssdp_thread_data structure. This structure contains SSDP request message.

Definition at line 88 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start_event_handler()

int anonymous_namespace{ssdp_common.cpp}::start_event_handler ( void *  Data)
inline

Parses the message and dispatches it to a handler which handles the ssdp request msg.

Returns
On success: 0
On error: -1
Parameters
[in]Datassdp_thread_data structure. This structure contains SSDP request message.

Definition at line 133 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ssdp_event_handler_thread()

void anonymous_namespace{ssdp_common.cpp}::ssdp_event_handler_thread ( void *  the_data)

This function is a thread that handles SSDP requests.

Todo:
Make utests and split function to separate handle ctrlpt and service.
Parameters
the_data[] Ssdp_thread_data structure. This structure contains SSDP request message.

Definition at line 173 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create_ssdp_sock_v4()

int anonymous_namespace{ssdp_common.cpp}::create_ssdp_sock_v4 ( SOCKET *  ssdpSock)
inline

Create an SSDP IPv4 socket.

Returns
On success: UPNP_E_SUCCESS
On error:
  • UPNP_E_OUTOF_SOCKET
  • UPNP_E_SOCKET_ERROR
  • UPNP_E_SOCKET_BIND
  • UPNP_E_NETWORK_ERROR
Parameters
[out]ssdpSockSSDP IPv4 socket to be created.

Definition at line 210 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create_ssdp_sock_v6()

int anonymous_namespace{ssdp_common.cpp}::create_ssdp_sock_v6 ( SOCKET *  ssdpSock)
inline

Create an SSDP IPv6 socket.

Returns
On success: UPNP_E_SUCCESS
On error:
  • UPNP_E_OUTOF_SOCKET
  • UPNP_E_SOCKET_ERROR
  • UPNP_E_SOCKET_BIND
  • UPNP_E_NETWORK_ERROR
Parameters
[out]ssdpSockSSDP IPv6 socket to be created.

Definition at line 339 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create_ssdp_sock_v6_ula_gua()

int anonymous_namespace{ssdp_common.cpp}::create_ssdp_sock_v6_ula_gua ( SOCKET *  ssdpSock)
inline

Create an SSDP IPv6 ULA_GUA socket.

Returns
On success: UPNP_E_SUCCESS
On error:
  • UPNP_E_OUTOF_SOCKET
  • UPNP_E_SOCKET_ERROR
  • UPNP_E_SOCKET_BIND
  • UPNP_E_NETWORK_ERROR
Parameters
[out]ssdpSockSSDP IPv6 socket to be created.

Definition at line 474 of file ssdp_common.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: