webio.c File Reference


Detailed Description

Implementation of the web io stuff.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2010-11-01


Functions

void WebIoProcessPost (BYTE PageIndex, BYTE *pControl, BYTE *pValueString, DWORD Value)
 This function processes HTTP post requests.
void WebIoHTTPExecuteGet (BYTE Index)
 This function is called if a HTTP GET request is received for one of the project pages.
BYTE HTTPCheckAuth (BYTE *cUser, BYTE *cPass)
 The function is called after authentication is entered.


Function Documentation

BYTE HTTPCheckAuth ( BYTE *  cUser,
BYTE *  cPass 
)

The function is called after authentication is entered.

It must check whether the user/password combination is valid.

Parameters:
cUser Pointer to the string of the requesting user.
cPass Pointer to the string of the password of requesting user.
Return values:
0 User/password combination is invalid.
Other User/password combination is valid.

void WebIoHTTPExecuteGet ( BYTE  Index  ) 

This function is called if a HTTP GET request is received for one of the project pages.

For the IO project this function processes the given index on GPIO configuration sites.

Parameters:
Index is the value of a possible given Id parameter in the HTTP GET request.

void WebIoProcessPost ( BYTE  PageIndex,
BYTE *  pControl,
BYTE *  pValueString,
DWORD  Value 
)

This function processes HTTP post requests.

Parameters:
PageIndex Index of the post request file.
pControl Pointer to the name of the post control.
pValueString Pointer to the value string of the post control.
Value The preprocessed value string as numeric variable.


Generated on Fri Mar 29 10:34:28 2013 for Netzer by  doxygen 1.5.5