Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
logging_client.c File Reference
#include "ev_mgr.h"
#include "logging_client.h"

Macros

#define MODULE   "logging_client"
 
#define kev   ((ksnetEvMgrClass*)(ke))
 

Typedefs

typedef struct
teoLoggingClientSendData 
teoLoggingClientSendData
 Logging servers Maps Foreach user data. More...
 

Functions

teoLoggingClientClassteoLoggingClientInit (void *ke)
 Logging client initialize. More...
 
void teoLoggingClientDestroy (teoLoggingClientClass *lc)
 Logging client destroy and free allocated memory. More...
 
void teoLoggingClientSend (void *ke, const char *message)
 Send log data to logging servers. More...
 

Detailed Description

Author
Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Teonet logging client module

Created on May 30, 2018, 1:33 PM

Macro Definition Documentation

#define kev   ((ksnetEvMgrClass*)(ke))
#define MODULE   "logging_client"

Typedef Documentation

typedef struct teoLoggingClientSendData teoLoggingClientSendData

Logging servers Maps Foreach user data.

Function Documentation

void teoLoggingClientDestroy ( teoLoggingClientClass lc)
teoLoggingClientClass* teoLoggingClientInit ( void *  ke)

Logging client initialize.

Parameters
kePointer to ksnetEvMgrClass
Returns
Pointer to teoLoggingClientClass

References DEBUG, DEBUG_VV, teoLoggingClientClass::event_cb, event_cb(), teoLoggingClientClass::ke, ke, kev, ksn_puts, malloc(), teoLoggingClientClass::map, and MODULE.

Referenced by modules_init().

void teoLoggingClientSend ( void *  ke,
const char *  message 
)

Send log data to logging servers.

Parameters
kePointer to ksnetEvMgrClass
messagePointer to cstring message

References kev, and ksnetEvMgrAsync().

Referenced by ksnet_printf().