UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
gena_callback2.cpp File Reference

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>
+ Include dependency graph for gena_callback2.cpp:

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.
 

Detailed Description

Callback function to handle incoming GENA requests.

Definition in file gena_callback2.cpp.

Function Documentation

◆ error_respond()

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.

Parameters
[in]infoStructure containing information about the socket.
[in]error_codeerror code that will be in the GENA response.
[in]hmsgGENA request Packet.

Definition at line 47 of file gena_callback2.cpp.

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

◆ genaCallback()

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.

Parameters
[in]parserRepresents the parse state of the request
[in]requestHTTP message containing GENA request
[in,out]infoStructure containing information about the socket

Definition at line 58 of file gena_callback2.cpp.

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