![]() |
![]() |
|
Network Services API
2.80.00.17
|
#include <stdint.h>#include <stdbool.h>#include <ti/net/slnetsock.h>#include <ti/net/slnetutils.h>#include <ti/net/slneterr.h>
Go to the source code of this file.
Data Structures | |
| struct | SlNetConn_config_t |
| Global parameters and attributes used to establish connections. More... | |
Typedefs | |
| typedef void(* | SlNetConn_AppEvent_f) (uint32_t ifID, SlNetConnStatus_e netStatus, void *data) |
| typedef struct SlNetConn_config_t | SlNetConn_config_t |
| Global parameters and attributes used to establish connections. More... | |
Enumerations | |
| enum | SlNetConnServiceLevel_e { SLNETCONN_SERVICE_LVL_MAC = 0, SLNETCONN_SERVICE_LVL_IP = 1, SLNETCONN_SERVICE_LVL_INTERNET = 2 } |
| enum | SlNetConnStatus_e { SLNETCONN_STATUS_DISCONNECTED = 1, SLNETCONN_STATUS_WAITING_FOR_CONNECTION = 2, SLNETCONN_STATUS_CONNECTED = 3, SLNETCONN_STATUS_CONNECTED_MAC = SLNETCONN_STATUS_CONNECTED + SLNETCONN_SERVICE_LVL_MAC, SLNETCONN_STATUS_CONNECTED_IP = SLNETCONN_STATUS_CONNECTED + SLNETCONN_SERVICE_LVL_IP, SLNETCONN_STATUS_CONNECTED_INTERNET = SLNETCONN_STATUS_CONNECTED + SLNETCONN_SERVICE_LVL_INTERNET } |
Functions | |
| int32_t | SlNetConn_init (int32_t flags) |
| Initialize the SlNetConn module. More... | |
| int32_t | SlNetConn_setConfiguration (SlNetConn_config_t *pConf) |
| Sets the SlNetConn global configuration parameters. More... | |
| 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. More... | |
| int32_t | SlNetConn_stop (SlNetConn_AppEvent_f fAppEventHdl) |
| Remove user's connection request. More... | |
| int32_t | SlNetConn_waitForConnection (SlNetConnServiceLevel_e targetServiceLevel, uint32_t timeout) |
| Wait for connection (of specific target level) to be establish. More... | |
| int32_t | SlNetConn_getStatus (bool bCheckInternetConnection, SlNetConnStatus_e *pStatus) |
| Retrieve the current connection status. More... | |
| void * | SlNetConn_process (void *pvParameters) |
| SlNetConn_process callback - Connection manager thread, handles all connection requests. More... | |