Teonet library
0.4.7
|
Go to the source code of this file.
Data Structures | |
struct | teoAuthClass |
File: teo_auth.h Author: Kirill Scherba kiril l@sc herba .ruMore... | |
struct | teoAuthData |
Teonet authentication request list data structure. More... | |
Typedefs | |
typedef struct teoAuthClass | teoAuthClass |
File: teo_auth.h Author: Kirill Scherba kiril l@sc herba .ruMore... | |
typedef void(* | command_callback )(void *nc_p, char *err, char *result) |
typedef struct teoAuthData | teoAuthData |
Teonet authentication request list data structure. More... | |
Functions | |
teoAuthClass * | teoAuthInit (ksnHTTPClass *kh) |
Initialize Teonet authenticate module. More... | |
void | teoAuthDestroy (teoAuthClass *ta) |
Destroy Teonet authenticate module. More... | |
int | teoAuthProcessCommand (teoAuthClass *ta, const char *method, const char *url, const char *data, const char *headers, void *nc_p, command_callback callback) |
Store authentication command in list. More... | |
typedef struct teoAuthClass teoAuthClass |
File: teo_auth.h Author: Kirill Scherba kiril l@sc herba .ru
Module to connect to Authentication server AuthPrototype
Created on December 1, 2015, 1:52 PM Teonet authentication module class structure
typedef struct teoAuthData teoAuthData |
Teonet authentication request list data structure.
void teoAuthDestroy | ( | teoAuthClass * | ta | ) |
Destroy Teonet authenticate module.
ta |
References teoAuthClass::async_mutex, teoAuthClass::cv_mutex, teoAuthClass::cv_threshold, free(), teoAuthClass::list, teoAuthClass::stop, teoAuthClass::stopped, and usleep().
Referenced by ksnHTTPDestroy().
teoAuthClass* teoAuthInit | ( | ksnHTTPClass * | kh | ) |
Initialize Teonet authenticate module.
References teoAuthClass::async_mutex, teoAuthClass::cv_mutex, teoAuthClass::cv_threshold, err, teoAuthClass::kh, teoAuthClass::list, malloc(), and teoAuthClass::tid.
Referenced by ksnHTTPInit().
int teoAuthProcessCommand | ( | teoAuthClass * | ta, |
const char * | method, | ||
const char * | url, | ||
const char * | data, | ||
const char * | headers, | ||
void * | nc_p, | ||
command_callback | callback | ||
) |
Store authentication command in list.
ta | Pointer to teoAuthClass |
method | |
url | |
data | |
headers | |
nc_p | |
callback |
References teoAuthClass::async_mutex, teoAuthData::callback, teoAuthData::data, teoAuthData::headers, teoAuthClass::list, malloc(), teoAuthData::method, teoAuthData::nc_p, and teoAuthData::url.