Functions | |
Functions scope restricted to file | |
int | dom_cmp_name (const char *name, IXML_Node *node) |
Compares 'name' and node's name. | |
int | dom_find_node (const char *node_name, IXML_Node *start_node, IXML_Node **matching_node) |
Goes thru each child of 'start_node' looking for a node having the name 'node_name'. | |
int | dom_find_deep_node (const char *names[], int num_names, IXML_Node *start_node, IXML_Node **matching_node) |
Searches for the node specifed by the last name in the 'name' array. | |
const DOMString | get_node_value (IXML_Node *node) |
This function returns the value of the text node. | |
int | get_host_and_path (char *ctrl_url, const memptr *host, const memptr *path, uri_type *url) |
This function retrives the host and path from the control URL. | |
int | get_action_name (char *action, memptr *name) |
This function retrives the action name in the buffer. | |
int | add_man_header (membuffer *headers) |
Adds "MAN" field in the HTTP header. | |
int | soap_request_and_response (membuffer *request, uri_type *destination_url, http_parser_t *response) |
This function sends the control point's request to the device and receives a response from it. | |
int | get_response_value (http_message_t *hmsg, int code, char *name, int *upnp_error_code, IXML_Node **action_value, DOMString *str_value) |
This function handles the response coming back from the device. | |
Variables | |
Variable scope restricted to file | |
constexpr int | SOAP_ACTION_RESP {1} |
Control point SOAP status. | |
constexpr int | SOAP_VAR_RESP {2} |
Control point SOAP status. | |
constexpr int | SOAP_ACTION_RESP_ERROR {3} |
Control point SOAP status. | |
constexpr int | SOAP_VAR_RESP_ERROR {4} |
Control point SOAP status. | |
int anonymous_namespace{soap_ctrlpt.cpp}::dom_cmp_name | ( | const char * | name, |
IXML_Node * | node | ||
) |
Compares 'name' and node's name.
Definition at line 88 of file soap_ctrlpt.cpp.
int anonymous_namespace{soap_ctrlpt.cpp}::dom_find_node | ( | const char * | node_name, |
IXML_Node * | start_node, | ||
IXML_Node ** | matching_node | ||
) |
Goes thru each child of 'start_node' looking for a node having the name 'node_name'.
Definition at line 125 of file soap_ctrlpt.cpp.
int anonymous_namespace{soap_ctrlpt.cpp}::dom_find_deep_node | ( | const char * | names[], |
int | num_names, | ||
IXML_Node * | start_node, | ||
IXML_Node ** | matching_node | ||
) |
Searches for the node specifed by the last name in the 'name' array.
Definition at line 158 of file soap_ctrlpt.cpp.
This function returns the value of the text node.
[in] | node | input node |
Definition at line 201 of file soap_ctrlpt.cpp.
|
inline |
This function retrives the host and path from the control URL.
[in] | ctrl_url | URL |
[out] | host | host string |
[out] | path | path string |
[out] | url | URL type |
Definition at line 223 of file soap_ctrlpt.cpp.
|
inline |
This function retrives the action name in the buffer.
[in] | action | String containing action name. |
[out] | name | Name of the action. |
Definition at line 249 of file soap_ctrlpt.cpp.
|
inline |
Adds "MAN" field in the HTTP header.
Definition at line 268 of file soap_ctrlpt.cpp.
int anonymous_namespace{soap_ctrlpt.cpp}::soap_request_and_response | ( | membuffer * | request, |
uri_type * | destination_url, | ||
http_parser_t * | response | ||
) |
This function sends the control point's request to the device and receives a response from it.
[in] | request | Request that will be sent to the device. |
[in] | destination_url | Destination address string. |
[out] | response | Response from the device. |
Definition at line 305 of file soap_ctrlpt.cpp.
int anonymous_namespace{soap_ctrlpt.cpp}::get_response_value | ( | http_message_t * | hmsg, |
int | code, | ||
char * | name, | ||
int * | upnp_error_code, | ||
IXML_Node ** | action_value, | ||
DOMString * | str_value | ||
) |
This function handles the response coming back from the device.
This function parses the response and gives back the SOAP response node.
[in] | hmsg | HTTP response message. |
[in] | code | Return code in the HTTP response. |
[in] | name | Name of the action. |
[out] | upnp_error_code | UPnP error code. |
[out] | action_value | SOAP response node. |
[out] | str_value | State varible value (in the case of querry state variable request). |
Definition at line 356 of file soap_ctrlpt.cpp.
|
constexpr |
Control point SOAP status.
Definition at line 69 of file soap_ctrlpt.cpp.
|
constexpr |
Control point SOAP status.
Definition at line 70 of file soap_ctrlpt.cpp.
|
constexpr |
Control point SOAP status.
Definition at line 72 of file soap_ctrlpt.cpp.
|
constexpr |
Control point SOAP status.
Definition at line 73 of file soap_ctrlpt.cpp.