Callback function to handle incoming GENA requests. More...
#include <gena.hpp>
#include <gena_ctrlpt.hpp>
#include <gena_device.hpp>
#include <httpreadwrite.hpp>
#include <statcodes.hpp>
#include <unixutil.hpp>
Go to the source code of this file.
Functions | |
void | error_respond (SOCKINFO *info, int error_code, http_message_t *hmsg) |
Sends an error message to the control point in the case of incorrect GENA requests. | |
void | genaCallback (http_parser_t *parser, http_message_t *request, SOCKINFO *info) |
This is the callback function called by the miniserver to handle incoming GENA requests. | |
Callback function to handle incoming GENA requests.
Definition in file gena_callback2.cpp.
void error_respond | ( | SOCKINFO * | info, |
int | error_code, | ||
http_message_t * | hmsg | ||
) |
Sends an error message to the control point in the case of incorrect GENA requests.
\ return UPNP_E_SUCCESS if successful, otherwise appropriate error code.
[in] | info | Structure containing information about the socket. |
[in] | error_code | error code that will be in the GENA response. |
[in] | hmsg | GENA request Packet. |
Definition at line 47 of file gena_callback2.cpp.
void genaCallback | ( | http_parser_t * | parser, |
http_message_t * | request, | ||
SOCKINFO * | info | ||
) |
This is the callback function called by the miniserver to handle incoming GENA requests.
\ returns UPNP_E_SUCCESS if successful, otherwise appropriate error code.
[in] | parser | Represents the parse state of the request |
[in] | request | HTTP message containing GENA request |
[in,out] | info | Structure containing information about the socket |
Definition at line 58 of file gena_callback2.cpp.