Network Services API
2.00.00.16
|
SlNetIf_Config_t structure contains all the function callbacks that are expected to be filled by the relevant network stack interface
Each interface has different capabilities, so not all the API's must be supported therefore an API's can be defined as:
.
More...
#include <slnetif.h>
Data Fields | |
int16_t(* | sockCreate )(void *ifContext, int16_t domain, int16_t type, int16_t protocol, void **sdContext) |
int32_t(* | sockClose )(int16_t sd, void *sdContext) |
int32_t(* | sockShutdown )(int16_t sd, void *sdContext, int how) |
int16_t(* | sockAccept )(int16_t sd, void *sdContext, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen, uint8_t flags, void **acceptedSdContext) |
int32_t(* | sockBind )(int16_t sd, void *sdContext, const SlNetSock_Addr_t *addr, int16_t addrlen) |
int32_t(* | sockListen )(int16_t sd, void *sdContext, int16_t backlog) |
int32_t(* | sockConnect )(int16_t sd, void *sdContext, const SlNetSock_Addr_t *addr, SlNetSocklen_t addrlen, uint8_t flags) |
int32_t(* | sockGetPeerName )(int16_t sd, void *sdContext, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
int32_t(* | sockGetLocalName )(int16_t sd, void *sdContext, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
int32_t(* | sockSelect )(void *ifContext, int16_t nsds, SlNetSock_SdSet_t *readsds, SlNetSock_SdSet_t *writesds, SlNetSock_SdSet_t *exceptsds, SlNetSock_Timeval_t *timeout) |
int32_t(* | sockSetOpt )(int16_t sd, void *sdContext, int16_t level, int16_t optname, void *optval, SlNetSocklen_t optlen) |
int32_t(* | sockGetOpt )(int16_t sd, void *sdContext, int16_t level, int16_t optname, void *optval, SlNetSocklen_t *optlen) |
int32_t(* | sockRecv )(int16_t sd, void *sdContext, void *buf, uint32_t len, uint32_t flags) |
int32_t(* | sockRecvFrom )(int16_t sd, void *sdContext, void *buf, uint32_t len, uint32_t flags, SlNetSock_Addr_t *from, SlNetSocklen_t *fromlen) |
int32_t(* | sockSend )(int16_t sd, void *sdContext, const void *buf, uint32_t len, uint32_t flags) |
int32_t(* | sockSendTo )(int16_t sd, void *sdContext, const void *buf, uint32_t len, uint32_t flags, const SlNetSock_Addr_t *to, SlNetSocklen_t tolen) |
int32_t(* | sockstartSec )(int16_t sd, void *sdContext, SlNetSockSecAttrib_t *secAttrib, uint8_t flags) |
int32_t(* | utilGetHostByName )(void *ifContext, char *name, const uint16_t nameLen, uint32_t **ipAddr, uint16_t *ipAddrLen, const uint8_t family) |
int32_t(* | ifGetIPAddr )(void *ifContext, SlNetIfAddressType_e addrType, uint16_t *addrConfig, uint32_t *ipAddr) |
int32_t(* | ifGetConnectionStatus )(void *ifContext) |
int32_t(* | ifLoadSecObj )(void *ifContext, uint16_t objType, char *objName, int16_t objNameLen, uint8_t *objBuff, int16_t objBuffLen) |
int32_t(* | ifCreateContext )(uint16_t ifID, const char *ifName, void **ifContext) |
SlNetIf_Config_t structure contains all the function callbacks that are expected to be filled by the relevant network stack interface
Each interface has different capabilities, so not all the API's must be supported therefore an API's can be defined as:
.
int16_t(* _SlNetIf_Config_t::sockCreate) (void *ifContext, int16_t domain, int16_t type, int16_t protocol, void **sdContext) |
Mandatory API
The actual implementation of the interface for SlNetSock_create
int32_t(* _SlNetIf_Config_t::sockClose) (int16_t sd, void *sdContext) |
Mandatory API
The actual implementation of the interface for SlNetSock_close
int32_t(* _SlNetIf_Config_t::sockShutdown) (int16_t sd, void *sdContext, int how) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_shutdown
int16_t(* _SlNetIf_Config_t::sockAccept) (int16_t sd, void *sdContext, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen, uint8_t flags, void **acceptedSdContext) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_accept
int32_t(* _SlNetIf_Config_t::sockBind) (int16_t sd, void *sdContext, const SlNetSock_Addr_t *addr, int16_t addrlen) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_bind
int32_t(* _SlNetIf_Config_t::sockListen) (int16_t sd, void *sdContext, int16_t backlog) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_listen
int32_t(* _SlNetIf_Config_t::sockConnect) (int16_t sd, void *sdContext, const SlNetSock_Addr_t *addr, SlNetSocklen_t addrlen, uint8_t flags) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_connect
int32_t(* _SlNetIf_Config_t::sockGetPeerName) (int16_t sd, void *sdContext, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_getPeerName
int32_t(* _SlNetIf_Config_t::sockGetLocalName) (int16_t sd, void *sdContext, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_getSockName
int32_t(* _SlNetIf_Config_t::sockSelect) (void *ifContext, int16_t nsds, SlNetSock_SdSet_t *readsds, SlNetSock_SdSet_t *writesds, SlNetSock_SdSet_t *exceptsds, SlNetSock_Timeval_t *timeout) |
Mandatory API
The actual implementation of the interface for SlNetSock_select
int32_t(* _SlNetIf_Config_t::sockSetOpt) (int16_t sd, void *sdContext, int16_t level, int16_t optname, void *optval, SlNetSocklen_t optlen) |
Mandatory API
The actual implementation of the interface for SlNetSock_setOpt
int32_t(* _SlNetIf_Config_t::sockGetOpt) (int16_t sd, void *sdContext, int16_t level, int16_t optname, void *optval, SlNetSocklen_t *optlen) |
Mandatory API
The actual implementation of the interface for SlNetSock_getOpt
int32_t(* _SlNetIf_Config_t::sockRecv) (int16_t sd, void *sdContext, void *buf, uint32_t len, uint32_t flags) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_recv
int32_t(* _SlNetIf_Config_t::sockRecvFrom) (int16_t sd, void *sdContext, void *buf, uint32_t len, uint32_t flags, SlNetSock_Addr_t *from, SlNetSocklen_t *fromlen) |
Mandatory API
The actual implementation of the interface for SlNetSock_recvFrom
int32_t(* _SlNetIf_Config_t::sockSend) (int16_t sd, void *sdContext, const void *buf, uint32_t len, uint32_t flags) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_send
int32_t(* _SlNetIf_Config_t::sockSendTo) (int16_t sd, void *sdContext, const void *buf, uint32_t len, uint32_t flags, const SlNetSock_Addr_t *to, SlNetSocklen_t tolen) |
Mandatory API
The actual implementation of the interface for SlNetSock_sendTo
int32_t(* _SlNetIf_Config_t::sockstartSec) (int16_t sd, void *sdContext, SlNetSockSecAttrib_t *secAttrib, uint8_t flags) |
Non-Mandatory API
The actual implementation of the interface for SlNetSock_startSec
int32_t(* _SlNetIf_Config_t::utilGetHostByName) (void *ifContext, char *name, const uint16_t nameLen, uint32_t **ipAddr, uint16_t *ipAddrLen, const uint8_t family) |
Non-Mandatory API
The actual implementation of the interface for SlNetUtil_getHostByName
int32_t(* _SlNetIf_Config_t::ifGetIPAddr) (void *ifContext, SlNetIfAddressType_e addrType, uint16_t *addrConfig, uint32_t *ipAddr) |
Mandatory API
The actual implementation of the interface for SlNetIf_getIPAddr
int32_t(* _SlNetIf_Config_t::ifGetConnectionStatus) (void *ifContext) |
Mandatory API
The actual implementation of the interface for SlNetIf_getConnectionStatus
int32_t(* _SlNetIf_Config_t::ifLoadSecObj) (void *ifContext, uint16_t objType, char *objName, int16_t objNameLen, uint8_t *objBuff, int16_t objBuffLen) |
Non-Mandatory API
The actual implementation of the interface for SlNetIf_loadSecObj
int32_t(* _SlNetIf_Config_t::ifCreateContext) (uint16_t ifID, const char *ifName, void **ifContext) |
Non-Mandatory API
The actual implementation of the interface for SlNetIf_add