Network Services API
2.75.00.17
|
#include <stdint.h>
#include <sys/time.h>
Go to the source code of this file.
Enumerations | |
enum | SlNetSockTxInhibitThreshold_e { SLNETSOCK_TX_INHIBIT_THRESHOLD_MIN = 1, SLNETSOCK_TX_INHIBIT_THRESHOLD_LOW = 2, SLNETSOCK_TX_INHIBIT_THRESHOLD_DEFAULT = 3, SLNETSOCK_TX_INHIBIT_THRESHOLD_MED = 4, SLNETSOCK_TX_INHIBIT_THRESHOLD_HIGH = 5, SLNETSOCK_TX_INHIBIT_THRESHOLD_MAX = 6 } |
The SlNetSockTxInhibitThreshold_e enumerations is used in SLNETSOCK_OPPHY_TX_INHIBIT_THRESHOLD PHY level option. More... | |
enum | SlNetSockSecAttrib_e { SLNETSOCK_SEC_ATTRIB_PRIVATE_KEY = 0, SLNETSOCK_SEC_ATTRIB_LOCAL_CERT = 1, SLNETSOCK_SEC_ATTRIB_PEER_ROOT_CA = 2, SLNETSOCK_SEC_ATTRIB_DH_KEY = 3, SLNETSOCK_SEC_ATTRIB_METHOD = 4, SLNETSOCK_SEC_ATTRIB_CIPHERS = 5, SLNETSOCK_SEC_ATTRIB_ALPN = 6, SLNETSOCK_SEC_ATTRIB_EXT_CLIENT_CHLNG_RESP = 7, SLNETSOCK_SEC_ATTRIB_DOMAIN_NAME = 8, SLNETSOCK_SEC_ATTRIB_DISABLE_CERT_STORE = 9 } |
The SlNetSockSecAttrib_e enumerations are used to declare security attribute objects in SlNetSock_secAttribSet(). More... | |
Functions | |
int32_t | SlNetSock_init (int32_t flags) |
Initialize the SlNetSock module. More... | |
int16_t | SlNetSock_create (int16_t domain, int16_t type, int16_t protocol, uint32_t ifBitmap, int16_t flags) |
Create an endpoint for communication. More... | |
int32_t | SlNetSock_close (int16_t sd) |
Gracefully close socket. More... | |
int32_t | SlNetSock_shutdown (int16_t sd, int16_t how) |
Shutting down parts of a full-duplex connection. More... | |
int16_t | SlNetSock_accept (int16_t sd, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
Accept a connection on a socket. More... | |
int32_t | SlNetSock_bind (int16_t sd, const SlNetSock_Addr_t *addr, int16_t addrlen) |
Assign a name to a socket. More... | |
int32_t | SlNetSock_listen (int16_t sd, int16_t backlog) |
Listen for connections on a socket. More... | |
int32_t | SlNetSock_connect (int16_t sd, const SlNetSock_Addr_t *addr, SlNetSocklen_t addrlen) |
Initiate a connection on a socket. More... | |
int32_t | SlNetSock_getPeerName (int16_t sd, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
Return address info about the remote side of the connection. More... | |
int32_t | SlNetSock_getSockName (int16_t sd, SlNetSock_Addr_t *addr, SlNetSocklen_t *addrlen) |
Get local address info by socket descriptor. More... | |
int32_t | SlNetSock_select (int16_t nsds, SlNetSock_SdSet_t *readsds, SlNetSock_SdSet_t *writesds, SlNetSock_SdSet_t *exceptsds, SlNetSock_Timeval_t *timeout) |
Monitor socket activity. More... | |
int32_t | SlNetSock_sdsSet (int16_t sd, SlNetSock_SdSet_t *sdset) |
SlNetSock_select's SlNetSock_SdSet_t SET function. More... | |
int32_t | SlNetSock_sdsClr (int16_t sd, SlNetSock_SdSet_t *sdset) |
SlNetSock_select's SlNetSock_SdSet_t CLR function. More... | |
int32_t | SlNetSock_sdsClrAll (SlNetSock_SdSet_t *sdset) |
SlNetSock_select's SlNetSock_SdSet_t ZERO function. More... | |
int32_t | SlNetSock_sdsIsSet (int16_t sd, SlNetSock_SdSet_t *sdset) |
SlNetSock_select's SlNetSock_SdSet_t ISSET function. More... | |
int32_t | SlNetSock_setOpt (int16_t sd, int16_t level, int16_t optname, void *optval, SlNetSocklen_t optlen) |
Set socket options. More... | |
int32_t | SlNetSock_getOpt (int16_t sd, int16_t level, int16_t optname, void *optval, SlNetSocklen_t *optlen) |
Get socket options. More... | |
int32_t | SlNetSock_recv (int16_t sd, void *buf, uint32_t len, uint32_t flags) |
Read data from TCP socket. More... | |
int32_t | SlNetSock_recvFrom (int16_t sd, void *buf, uint32_t len, uint32_t flags, SlNetSock_Addr_t *from, SlNetSocklen_t *fromlen) |
Read data from socket. More... | |
int32_t | SlNetSock_send (int16_t sd, const void *buf, uint32_t len, uint32_t flags) |
Write data to TCP socket. More... | |
int32_t | SlNetSock_sendTo (int16_t sd, const void *buf, uint32_t len, uint32_t flags, const SlNetSock_Addr_t *to, SlNetSocklen_t tolen) |
Write data to socket. More... | |
int32_t | SlNetSock_getIfID (uint16_t sd) |
Get interface ID from socket descriptor (sd) More... | |
SlNetSockSecAttrib_t * | SlNetSock_secAttribCreate (void) |
Creates a security attributes object. More... | |
int32_t | SlNetSock_secAttribDelete (SlNetSockSecAttrib_t *secAttrib) |
Deletes a security attributes object. More... | |
int32_t | SlNetSock_secAttribSet (SlNetSockSecAttrib_t *secAttrib, SlNetSockSecAttrib_e attribName, void *val, uint16_t len) |
set a security attribute More... | |
int32_t | SlNetSock_startSec (int16_t sd, SlNetSockSecAttrib_t *secAttrib, uint8_t flags) |
Start a security session on an opened socket. More... | |