37 #ifndef __SL_NET_CONN_H__ 38 #define __SL_NET_CONN_H__ 73 #define SLNETCONN_NETWORK_INTERFACES_NUM 2 76 #define SLNETCONN_USERS_NUM 8 82 #define SLNETCONN_DEBUG_ENABLE (0) 165 typedef void (*SlNetConn_Debug_f)(
const char * _format, ...);
250 uint32_t timeout, uint32_t flags);
329 #if SLNETCONN_DEBUG_ENABLE 338 void SlNetConn_registerDebugCallback(SlNetConn_Debug_f fDebugPrint);
Definition: slnetconn.h:107
Definition: slnetconn.h:109
int32_t SlNetConn_waitForConnection(SlNetConnServiceLevel_e targetServiceLevel, uint32_t timeout)
Wait for connection (of specific target level) to be establish.
Definition: slnetconn.h:93
uint16_t serverAddrFamily
Definition: slnetconn.h:150
void(* SlNetConn_AppEvent_f)(uint32_t ifID, SlNetConnStatus_e netStatus, void *data)
Definition: slnetconn.h:125
void * SlNetConn_process(void *pvParameters)
SlNetConn_process callback - Connection manager thread, handles all connection requests.
uint32_t ifBitmap
Definition: slnetconn.h:138
Definition: slnetconn.h:108
struct SlNetConn_config_t SlNetConn_config_t
Global parameters and attributes used to establish connections.
Definition: slnetconn.h:110
Definition: slnetconn.h:92
int32_t SlNetConn_init(int32_t flags)
Initialize the SlNetConn module.
Definition: slnetconn.h:94
Definition: slnetconn.h:112
Definition: slnetconn.h:111
int32_t SlNetConn_stop(SlNetConn_AppEvent_f fAppEventHdl)
Remove user's connection request.
int32_t SlNetConn_getStatus(bool bCheckInternetConnection, SlNetConnStatus_e *pStatus)
Retrieve the current connection status.
int32_t SlNetConn_start(SlNetConnServiceLevel_e targetServiceLevel, SlNetConn_AppEvent_f fAppEventHdl, uint32_t timeout, uint32_t flags)
Request a connection (of specific target level) to be establish.
Global parameters and attributes used to establish connections.
Definition: slnetconn.h:136
char * pServerAddress
Definition: slnetconn.h:145
SlNetConnStatus_e
Definition: slnetconn.h:105
SlNetConnServiceLevel_e
Definition: slnetconn.h:90
int32_t SlNetConn_setConfiguration(SlNetConn_config_t *pConf)
Sets the SlNetConn global configuration parameters.