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

Go to the source code of this file.

Data Structures

struct  teoAsyncClass
 Teonet Async class data definition. More...
 

Typedefs

typedef struct teoAsyncClass teoAsyncClass
 Teonet Async class data definition. More...
 

Functions

teoAsyncClassteoAsyncInit (void *ke)
 Async module initialize. More...
 
void teoAsyncDestroy (teoAsyncClass *ta)
 Async module destroy and free allocated memory. More...
 
void ksnCoreSendCmdtoA (void *ke, const char *peer, uint8_t cmd, void *data, size_t data_length)
 
void teoSScrSendA (void *ke, uint16_t event, void *data, size_t data_length, uint8_t cmd)
 
void sendCmdAnswerToBinaryA (void *ke, void *rd, uint8_t cmd, void *data, size_t data_length)
 
void teoSScrSubscribeA (teoSScrClass *sscr, char *peer_name, uint16_t ev)
 Send command to subscribe this host to event at remote peer. More...
 

Typedef Documentation

typedef struct teoAsyncClass teoAsyncClass

Teonet Async class data definition.

Function Documentation

void ksnCoreSendCmdtoA ( void *  ke,
const char *  peer,
uint8_t  cmd,
void *  data,
size_t  data_length 
)
void teoAsyncDestroy ( teoAsyncClass ta)
void teoSScrSendA ( void *  ke,
uint16_t  event,
void *  data,
size_t  data_length,
uint8_t  cmd 
)
void teoSScrSubscribeA ( teoSScrClass sscr,
char *  peer_name,
uint16_t  ev 
)

Send command to subscribe this host to event at remote peer.

Parameters
sscrPointer to teoSScrClass
peer_nameRemote host name
evEvent

References DEBUG, teoSScrClass::ke, kev, ksn_printf, malloc(), MODULE, SEND_ASYNC, TEO_SSCR_SUBSCRIBE, and teoSScrSubscribe().

Referenced by teo::Teonet::subscribeA(), and teoAsyncTest().