Data Structures | Macros | Typedefs | Enumerations

Socket Interface. More...

+ Collaboration diagram for Socket:

Data Structures

struct  SlFdSet_t
 
struct  SlIn6Addr_t
 
struct  SlInAddr_t
 
struct  SlIpLeasedAsync_t
 
struct  SlIpReleasedAsync_t
 
struct  SlIpV4AcquiredAsync_t
 
struct  SlIpV6AcquiredAsync_t
 
struct  SlNetAppEvent_t
 
union  SlNetAppEventData_u
 
struct  SlSockAddr_t
 
struct  SlSockAddrIn6_t
 
struct  SlSockAddrIn_t
 
struct  SlSocketAsyncEvent_t
 
struct  SlSockEvent_t
 
union  SlSockEventData_u
 
struct  SlSockIpMreq
 
struct  SlSockKeepalive_t
 
struct  SlSockNonblocking_t
 
struct  SlSockReuseaddr_t
 
struct  SlSockSecureMask
 
struct  SlSockSecureMethod
 
struct  SlSockTxFailEventData_t
 
struct  SlSockWinsize_t
 
struct  SlTimeval_t
 
struct  SlTransceiverRxOverHead_t
 
struct  sock_secureFiles
 

Macros

#define BSD_SOCKET_ID_MASK   (0x0F) /* Index using the LBS 4 bits for socket id 0-7 */
 
#define OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED   (2) /* remote side down from secure to unsecure */
 
#define RX_FRAGMENTATION_TOO_BIG   (1) /* connection less mode, rx packet fragmentation > 16K, packet is being released */
 
#define SECURE_MAX_DOMAIN_LENGTH   (64)
 
#define SL_AF_INET   (2) /* IPv4 socket (UDP, TCP, etc) */
 
#define SL_AF_INET6   (3) /* IPv6 socket (UDP, TCP, etc) */
 
#define SL_AF_INET6_EUI_48   (9)
 
#define SL_AF_PACKET   (17)
 
#define SL_AF_RF   (6) /* data include RF parameter, All layer by user (Wifi could be disconnected) */
 
#define SL_CONNECTION_PENDING   (-72) /* Transceiver - Device is connected, disconnect first to open transceiver */
 
#define SL_EACCES   (-13) /* Permission denied */
 
#define SL_EADDRINUSE   (-98) /* Address already in use */
 
#define SL_EADDRNOTAVAIL   (-99) /* Cannot assign requested address */
 
#define SL_EAFNOSUPPORT   (-97) /* Address family not supported by protocol */
 
#define SL_EAGAIN   (-11) /* Try again */
 
#define SL_EALREADY   (-114) /* Non blocking connect in progress, try again */
 
#define SL_EALREADY_ENABLED   (-21) /* Transceiver - Transceiver already ON. there could be only one */
 
#define SL_EAUTO_CONNECT_OR_CONNECTING   (-69) /* Transceiver - During connection, connected or auto mode started */
 
#define SL_EBADF   (-9) /* Bad file number */
 
#define SL_ECLOSE   (-15) /* close socket operation failed to transmit all queued packets */
 
#define SL_ECONNREFUSED   (-111) /* Connection refused */
 
#define SL_EDESTADDRREQ   (-89) /* Destination address required */
 
#define SL_EFAULT   (-14) /* Bad address */
 
#define SL_EINVAL   (-22) /* Invalid argument */
 
#define SL_EISCONN   (-106) /* Transport endpoint is already connected */
 
#define SL_ENETUNREACH   (-101) /* Network is unreachable */
 
#define SL_ENOBUFS   (-105) /* No buffer space available */
 
#define SL_ENOMEM   (-12) /* Out of memory */
 
#define SL_ENOPROTOOPT   (-92) /* Protocol not available */
 
#define SL_ENOTCONN   (-107) /* Transport endpoint is not connected */
 
#define SL_ENSOCK   (-10) /* The system limit on the total number of open socket, has been reached */
 
#define SL_EOBUFF   SL_ENOBUFS
 
#define SL_EOPNOTSUPP   (-95) /* Operation not supported on transport endpoint */
 
#define SL_EPROTONOSUPPORT   (-93) /* Protocol not supported */
 
#define SL_EPROTOTYPE   (-91) /* Protocol wrong type for socket */
 
#define SL_ESEC_ACCESS_DENIED   (-349) /* ssl/tls alerts */
 
#define SL_ESEC_AES_CCM_AUTH_E   (-181) /* AES-CCM Authentication check failure */
 
#define SL_ESEC_AES_GCM_AUTH_E   (-180) /* AES-GCM Authentication check failure */
 
#define SL_ESEC_ALGO_ID_E   (-133) /* setting algo id error */
 
#define SL_ESEC_ALT_NAME_E   (-177) /* alt name size problem, too big */
 
#define SL_ESEC_ASN_AFTER_DATE_E   (-151) /* ASN date error, current date after */
 
#define SL_ESEC_ASN_BEFORE_DATE_E   (-150) /* ASN date error, current date before */
 
#define SL_ESEC_ASN_BITSTR_E   (-147) /* ASN bit string error, wrong id */
 
#define SL_ESEC_ASN_DATE_SZ_E   (-149) /* ASN date error, bad size */
 
#define SL_ESEC_ASN_DH_KEY_E   (-158) /* ASN key init error, invalid input */
 
#define SL_ESEC_ASN_ECC_KEY_E   (-171) /* ASN ECC bad input */
 
#define SL_ESEC_ASN_EXPECT_0_E   (-146) /* ASN expect error, not zero */
 
#define SL_ESEC_ASN_GETINT_E   (-142) /* ASN get big _i16 error, invalid data */
 
#define SL_ESEC_ASN_INPUT_E   (-154) /* ASN input error, not enough data */
 
#define SL_ESEC_ASN_NTRU_KEY_E   (-159) /* ASN ntru key decode error, invalid input */
 
#define SL_ESEC_ASN_OBJECT_ID_E   (-144) /* ASN object id error, invalid id */
 
#define SL_ESEC_ASN_PARSE_E   (-140) /* ASN parsing error, invalid input */
 
#define SL_ESEC_ASN_RSA_KEY_E   (-143) /* ASN key init error, invalid input */
 
#define SL_ESEC_ASN_SIG_CONFIRM_E   (-155) /* ASN sig error, confirm failure */
 
#define SL_ESEC_ASN_SIG_HASH_E   (-156) /* ASN sig error, unsupported hash type */
 
#define SL_ESEC_ASN_SIG_KEY_E   (-157) /* ASN sig error, unsupported key type */
 
#define SL_ESEC_ASN_SIG_OID_E   (-152) /* ASN signature error, mismatched oid */
 
#define SL_ESEC_ASN_TAG_NULL_E   (-145) /* ASN tag error, not null */
 
#define SL_ESEC_ASN_TIME_E   (-153) /* ASN time error, unknown time type */
 
#define SL_ESEC_ASN_UNKNOWN_OID_E   (-148) /* ASN oid error, unknown sum id */
 
#define SL_ESEC_ASN_VERSION_E   (-141) /* ASN version error, invalid number */
 
#define SL_ESEC_BAD_CERT_MANAGER_ERROR   (-259) /* Bad Cert Manager */
 
#define SL_ESEC_BAD_CERTIFICATE   (-342) /* ssl/tls alerts */
 
#define SL_ESEC_BAD_CERTIFICATE_HASH_VALUE   (-414) /* ssl/tls alerts */
 
#define SL_ESEC_BAD_CERTIFICATE_STATUS_RESPONSE   (-413) /* ssl/tls alerts */
 
#define SL_ESEC_BAD_FUNC_ARG   (-173) /* Bad function argument provided */
 
#define SL_ESEC_BAD_HELLO   (-221) /* client hello malformed */
 
#define SL_ESEC_BAD_PATH_ERROR   (-258) /* Bad path for opendir */
 
#define SL_ESEC_BAD_RECORD_MAC   (-320) /* ssl/tls alerts */
 
#define SL_ESEC_BUFFER_E   (-132) /* output buffer too small or input too large */
 
#define SL_ESEC_BUFFER_ERROR   (-228) /* malformed buffer input */
 
#define SL_ESEC_BUILD_MSG_ERROR   (-220) /* build message failure */
 
#define SL_ESEC_CA_TRUE_E   (-138) /* setting CA basic constraint true error */
 
#define SL_ESEC_CERTIFICATE_EXPIRED   (-345) /* ssl/tls alerts */
 
#define SL_ESEC_CERTIFICATE_REVOKED   (-344) /* ssl/tls alerts */
 
#define SL_ESEC_CERTIFICATE_UNKNOWN   (-346) /* ssl/tls alerts */
 
#define SL_ESEC_CERTIFICATE_UNOBTAINABLE   (-411) /* ssl/tls alerts */
 
#define SL_ESEC_CLOSE_NOTIFY   (-300) /* ssl/tls alerts */
 
#define SL_ESEC_DATE_E   (-135) /* setting date validity error */
 
#define SL_ESEC_DECODE_ERROR   (-350) /* ssl/tls alerts */
 
#define SL_ESEC_DECOMPRESSION_FAILURE   (-330) /* ssl/tls alerts */
 
#define SL_ESEC_DECRYPT_ERROR   (-351) /* ssl/tls alerts */
 
#define SL_ESEC_DECRYPTION_FAILED   (-321) /* ssl/tls alerts */
 
#define SL_ESEC_DOMAIN_NAME_MISMATCH   (-222) /* peer subject name mismatch */
 
#define SL_ESEC_ECC_BAD_ARG_E   (-170) /* ECC input argument of wrong type */
 
#define SL_ESEC_ECC_CURVE_ERROR   (-251) /* Bad ECC Curve */
 
#define SL_ESEC_ECC_CURVE_OID_E   (-172) /* Unsupported ECC OID curve type */
 
#define SL_ESEC_ECC_CURVETYPE_ERROR   (-250) /* Bad ECC Curve Type */
 
#define SL_ESEC_ECC_EXPORT_ERROR   (-254) /* Bad ECC Export Key */
 
#define SL_ESEC_ECC_MAKEKEY_ERROR   (-253) /* Bad Make ECC Key */
 
#define SL_ESEC_ECC_PEERKEY_ERROR   (-252) /* Bad Peer ECC Key */
 
#define SL_ESEC_ECC_SHARED_ERROR   (-255) /* Bad ECC Shared Secret */
 
#define SL_ESEC_ENCRYPT_ERROR   (-214) /* error during encryption */
 
#define SL_ESEC_EXPORT_RESTRICTION   (-360) /* ssl/tls alerts */
 
#define SL_ESEC_EXTENSIONS_E   (-139) /* setting extensions error */
 
#define SL_ESEC_FATAL_ERROR   (-213) /* recvd alert fatal error */
 
#define SL_ESEC_GEN_COOKIE_E   (-277) /* Generate Cookie Error */
 
#define SL_ESEC_HANDSHAKE_FAILURE   (-340) /* ssl/tls alerts */
 
#define SL_ESEC_ILLEGAL_PARAMETER   (-347) /* ssl/tls alerts */
 
#define SL_ESEC_INCOMPLETE_DATA   (-210) /* don't have enough data to complete task */
 
#define SL_ESEC_INSUFFICIENT_SECURITY   (-371) /* ssl/tls alerts */
 
#define SL_ESEC_INTERNAL_ERROR   (-380) /* ssl/tls alerts */
 
#define SL_ESEC_ISSUER_E   (-137) /* setting issuer name error */
 
#define SL_ESEC_LENGTH_ERROR   (-241) /* record layer length error */
 
#define SL_ESEC_MATCH_SUITE_ERROR   (-291 ) /* can't match cipher suite */
 
#define SL_ESEC_MAX_CHAIN_ERROR   (-268) /* max chain depth exceeded */
 
#define SL_ESEC_MEMORY_ERROR   (-203) /* out of memory */
 
#define SL_ESEC_NO_CERTIFICATE   (-341) /* ssl/tls alerts */
 
#define SL_ESEC_NO_DH_PARAMS   (-219) /* server missing DH params */
 
#define SL_ESEC_NO_PASSWORD   (-176) /* no password provided by user */
 
#define SL_ESEC_NO_PEER_CERT   (-245) /* peer didn't send key */
 
#define SL_ESEC_NO_PEER_KEY   (-216) /* need peer's key */
 
#define SL_ESEC_NO_PEER_VERIFY   (-278) /* Need peer cert verify Error */
 
#define SL_ESEC_NO_PRIVATE_KEY   (-217) /* need the private key */
 
#define SL_ESEC_NO_RENEGOTIATION   (-400) /* ssl/tls alerts */
 
#define SL_ESEC_NOT_CA_ERROR   (-257) /* Not a CA cert error */
 
#define SL_ESEC_NOT_COMPILED_IN   (-174) /* Feature not compiled in */
 
#define SL_ESEC_NOT_READY_ERROR   (-224) /* handshake layer not ready */
 
#define SL_ESEC_OUT_OF_ORDER_E   (-273) /* out of order message */
 
#define SL_ESEC_PEER_KEY_ERROR   (-242) /* can't decode peer key */
 
#define SL_ESEC_PMS_VERSION_ERROR   (-225) /* pre m secret version error */
 
#define SL_ESEC_PROTOCOL_VERSION   (-370) /* ssl/tls alerts */
 
#define SL_ESEC_PUBLIC_KEY_E   (-134) /* setting public key error */
 
#define SL_ESEC_RECORD_OVERFLOW   (-322) /* ssl/tls alerts */
 
#define SL_ESEC_RSA_BUFFER_E   (-131) /* RSA buffer error, output too small or */
 
#define SL_ESEC_RSA_PRIVATE_ERROR   (-218) /* error during rsa priv op */
 
#define SL_ESEC_RSA_WRONG_TYPE_E   (-130) /* RSA wrong block type for RSA function */
 
#define SL_ESEC_SANITY_CIPHER_E   (-275) /* sanity check on cipher error */
 
#define SL_ESEC_SIDE_ERROR   (-244) /* wrong client/server type */
 
#define SL_ESEC_SOCKET_ERROR_E   (-208) /* error state on socket */
 
#define SL_ESEC_SOCKET_NODATA   (-209) /* expected data, not there */
 
#define SL_ESEC_SSL_NO_PEM_HEADER   (-272) /* no PEM header found */
 
#define SL_ESEC_SUBJECT_E   (-136) /* setting subject name error */
 
#define SL_ESEC_SUITES_ERROR   (-271) /* suites pointer error */
 
#define SL_ESEC_UNEXPECTED_MESSAGE   (-310) /* ssl/tls alerts */
 
#define SL_ESEC_UNICODE_SIZE_E   (-175) /* Unicode password too big */
 
#define SL_ESEC_UNKNOWN_CA   (-348) /* ssl/tls alerts */
 
#define SL_ESEC_UNKNOWN_HANDSHAKE_TYPE   (-207) /* weird handshake type */
 
#define SL_ESEC_UNKNOWN_RECORD_TYPE   (-211) /* unknown type in record hdr */
 
#define SL_ESEC_UNKNOWN_SNI_HOST_NAME_E   (-281) /* Unrecognized host name Error */
 
#define SL_ESEC_UNRECOGNIZED_NAME   (-412) /* ssl/tls alerts */
 
#define SL_ESEC_UNSUPPORTED_CERTIFICATE   (-343) /* ssl/tls alerts */
 
#define SL_ESEC_UNSUPPORTED_EXTENSION   (-410) /* ssl/tls alerts */
 
#define SL_ESEC_UNSUPPORTED_SUITE   (-290) /* unsupported cipher suite */
 
#define SL_ESEC_USER_CANCELLED   (-390) /* ssl/tls alerts */
 
#define SL_ESEC_VERIFY_CERT_ERROR   (-229) /* verify cert error */
 
#define SL_ESEC_VERIFY_FINISHED_ERROR   (-204) /* verify problem on finished */
 
#define SL_ESEC_VERIFY_MAC_ERROR   (-205) /* verify mac problem */
 
#define SL_ESEC_VERIFY_SIGN_ERROR   (-230) /* verify sign error */
 
#define SL_ESEC_VERSION_ERROR   (-226) /* record layer version error */
 
#define SL_ESEC_WANT_READ   (-223) /* want read, call again */
 
#define SL_ESEC_WANT_WRITE   (-227) /* want write, call again */
 
#define SL_ESEC_ZERO_RETURN   (-243) /* peer sent close notify */
 
#define SL_ESECBADCAFILE   (-456) /* error secure level bad CA file */
 
#define SL_ESECBADCERTFILE   (-457) /* error secure level bad Certificate file */
 
#define SL_ESECBADDHFILE   (-459) /* error secure level bad DH file */
 
#define SL_ESECBADPRIVATEFILE   (-458) /* error secure level bad private file */
 
#define SL_ESECCLOSED   (-452) /* secure layrer is closed by other size , tcp is still connected */
 
#define SL_ESECDATEERROR   (-461) /* connected with certificate date verification error */
 
#define SL_ESECDECRYPT   (-451) /* error secure level, decrypt recv packet fail */
 
#define SL_ESECGENERAL   (-450) /* error secure level general error */
 
#define SL_ESECHANDSHAKETIMEDOUT   (-462) /* connection timed out due to handshake time */
 
#define SL_ESECMEMORY   (-455) /* error secure level No memory space available */
 
#define SL_ESECNOCAFILE   (-454) /* error secure level CA file not found*/
 
#define SL_ESECSNOVERIFY   (-453) /* Connected without server verification */
 
#define SL_ESECT00MANYSSLOPENED   (-460) /* MAX SSL Sockets are opened */
 
#define SL_ESOCKTNOSUPPORT   (-94) /* Socket type not supported */
 
#define SL_ETIMEDOUT   (-110) /* Connection timed out */
 
#define SL_EUNSUPPORTED_ROLE   (-86) /* Transceiver - Trying to start when WLAN role is AP or P2P GO */
 
#define SL_EWOULDBLOCK   SL_EAGAIN
 
#define SL_FD_SETSIZE   SL_MAX_SOCKETS /* Number of sockets to select on - same is max sockets! */
 
#define SL_INADDR_ANY   (0) /* bind any address */
 
#define SL_INEXE   (-8) /* socket command in execution */
 
#define SL_IP_ADD_MEMBERSHIP   (65) /* Join IPv4 multicast membership */
 
#define SL_IP_DROP_MEMBERSHIP   (66) /* Leave IPv4 multicast membership */
 
#define SL_IP_HDRINCL   (67) /* Raw socket IPv4 header included. */
 
#define SL_IP_LEASE_EXPIRED   (2)
 
#define SL_IP_LEASE_PEER_DECLINE   (1)
 
#define SL_IP_LEASE_PEER_RELEASE   (0)
 
#define SL_IP_MULTICAST_IF   (60) /* Specify outgoing multicast interface */
 
#define SL_IP_MULTICAST_TTL   (61) /* Specify the TTL value to use for outgoing multicast packet. */
 
#define SL_IP_RAW_IPV6_HDRINCL   (69) /* Transmitted buffer over IPv6 socket contains IPv6 header. */
 
#define SL_IP_RAW_RX_NO_HEADER   (68) /* Proprietary socket option that does not includeIPv4/IPv6 header (and extension headers) on received raw sockets*/
 
#define SL_IPPROTO_IP   (2) /* Define the IP option category. */
 
#define SL_IPPROTO_RAW   (255) /* Raw Socket */
 
#define SL_IPPROTO_TCP   (6) /* TCP Raw Socket */
 
#define SL_IPPROTO_UDP   (17) /* UDP Raw Socket */
 
#define SL_MSG_DONTWAIT   (0x00000008) /* Nonblocking IO */
 
#define SL_PF_INET   AF_INET
 
#define SL_PF_INET6   AF_INET6
 
#define SL_SEC_MASK_SECURE_DEFAULT   ((SL_SEC_MASK_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 << 1) - 1)
 
#define SL_SEC_MASK_SSL_RSA_WITH_RC4_128_MD5   (1 << 1)
 
#define SL_SEC_MASK_SSL_RSA_WITH_RC4_128_SHA   (1 << 0)
 
#define SL_SEC_MASK_TLS_DHE_RSA_WITH_AES_256_CBC_SHA   (1 << 3)
 
#define SL_SEC_MASK_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256   (1 << 9)
 
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256   (1 << 8)
 
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA   (1 << 4)
 
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_RC4_128_SHA   (1 << 5)
 
#define SL_SEC_MASK_TLS_RSA_WITH_AES_128_CBC_SHA256   (1 << 6)
 
#define SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA   (1 << 2)
 
#define SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA256   (1 << 7)
 
#define SL_SEC_SOCKET   (100) /* Secured Socket Layer (SSL,TLS) */
 
#define SL_SO_CHANGE_CHANNEL   (28) /* This option is available only when transceiver started */
 
#define SL_SO_KEEPALIVE   (9) /* Connections are kept alive with periodic messages */
 
#define SL_SO_NONBLOCKING   (24) /* Enable . disable nonblocking mode */
 
#define SL_SO_PHY_NUM_FRAMES_TO_TX   (102) /* Number of frames to transmit */
 
#define SL_SO_PHY_PREAMBLE   (103) /* Preamble for transmission */
 
#define SL_SO_PHY_RATE   (100) /* WLAN Transmit rate */
 
#define SL_SO_PHY_TX_POWER   (101) /* TX Power level */
 
#define SL_SO_RCVBUF   (8) /* Setting TCP receive buffer size */
 
#define SL_SO_RCVTIMEO   (20) /* Enable receive timeout */
 
#define SL_SO_SEC_METHOD_DLSV1   (5) /* security metohd DTL v1 */
 
#define SL_SO_SEC_METHOD_SSLV3   (0) /* security metohd SSL v3*/
 
#define SL_SO_SEC_METHOD_SSLv3_TLSV1_2   (4) /* use highest possible version from SSLv3 - TLS 1.2*/
 
#define SL_SO_SEC_METHOD_TLSV1   (1) /* security metohd TLS v1*/
 
#define SL_SO_SEC_METHOD_TLSV1_1   (2) /* security metohd TLS v1_1*/
 
#define SL_SO_SEC_METHOD_TLSV1_2   (3) /* security metohd TLS v1_2*/
 
#define SL_SO_SECMETHOD   (25) /* security metohd */
 
#define SL_SO_SECURE_FILES   (27) /* security files */
 
#define SL_SO_SECURE_FILES_CA_FILE_NAME   (32) /* This option used to configue secure file */
 
#define SL_SO_SECURE_FILES_CERTIFICATE_FILE_NAME   (31) /* This option used to configue secure file */
 
#define SL_SO_SECURE_FILES_DH_KEY_FILE_NAME   (33) /* This option used to configue secure file */
 
#define SL_SO_SECURE_FILES_PRIVATE_KEY_FILE_NAME   (30) /* This option used to configue secure file */
 
#define SL_SO_SECURE_MASK   (26) /* security mask */
 
#define SL_SOC_ERROR   (-1) /* Failure. */
 
#define SL_SOC_OK   ( 0) /* Success. */
 
#define SL_SOCK_DGRAM   (2) /* UDP Socket */
 
#define SL_SOCK_RAW   (3) /* Raw socket */
 
#define SL_SOCK_STREAM   (1) /* TCP Socket */
 
#define SL_SOCKET_ERROR_E   (-208) /* Error state on socket */
 
#define SL_SOCKET_PAYLOAD_TYPE_MASK   (0xF0) /*4 bits type, 4 bits sockets id */
 
#define SL_SOCKET_PAYLOAD_TYPE_RAW_IP4   (0xa0)
 
#define SL_SOCKET_PAYLOAD_TYPE_RAW_IP6   (SL_SOCKET_PAYLOAD_TYPE_RAW_IP4 )
 
#define SL_SOCKET_PAYLOAD_TYPE_RAW_PACKET   (0x90) /* 1536 bytes */
 
#define SL_SOCKET_PAYLOAD_TYPE_RAW_TRANCEIVER   (0x80) /* 1536 bytes */
 
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV4   (0x10) /* 1460 bytes */
 
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV4_SECURE   (0x50) /* */
 
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV6   (0x30) /* 1440 bytes */
 
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV6_SECURE   (0x70) /* */
 
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV4   (0x00) /* 1472 bytes */
 
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV4_SECURE   (0x40) /* */
 
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV6   (0x20) /* 1452 bytes */
 
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV6_SECURE   (0x60) /* */
 
#define SL_SOL_PHY_OPT   (3) /* Define the PHY option category. */
 
#define SL_SOL_SOCKET   (1) /* Define the socket option category. */
 
#define SO_SECURE_DOMAIN_NAME_VERIFICATION   (35)
 
#define SSL_ACCEPT   (0) /* accept failed due to ssl issue ( tcp pass) */
 

Typedefs

typedef struct SlFdSet_t SlFdSet_t
 
typedef struct SlIn6Addr_t SlIn6Addr_t
 
typedef struct SlInAddr_t SlInAddr_t
 
typedef struct SlSockAddr_t SlSockAddr_t
 
typedef struct SlSockAddrIn6_t SlSockAddrIn6_t
 
typedef struct SlSockAddrIn_t SlSockAddrIn_t
 
typedef _u16 SlSocklen_t
 
typedef struct sock_secureFiles SlSockSecureFiles_t
 
typedef _u32 SlSuseconds_t
 
typedef _u32 SlTime_t
 
typedef struct SlTimeval_t SlTimeval_t
 

Enumerations

enum  slBsd_secureSocketFilesIndex_e
 

Detailed Description


Data Structure Documentation

struct SlFdSet_t

Data Fields

_u32 fd_array [(SL_FD_SETSIZE+(_u8) 31)/(_u8) 32]
 

Field Documentation

_u32 fd_array[(SL_FD_SETSIZE+(_u8) 31)/(_u8) 32]
struct SlIn6Addr_t

Data Fields

union {
   _u32   _S6_u32 [4]
 
   _u8   _S6_u8 [16]
 
_S6_un
 

Field Documentation

_u32 _S6_u32[4]
_u8 _S6_u8[16]
union { ... } _S6_un
struct SlInAddr_t

Data Fields

_u32 s_addr
 

Field Documentation

_u32 s_addr
struct SlIpLeasedAsync_t

Data Fields

_u32 ip_address
 
_u32 lease_time
 
_u8 mac [6]
 
_u16 padding
 

Field Documentation

_u32 ip_address
_u32 lease_time
_u8 mac[6]
_u16 padding
struct SlIpReleasedAsync_t

Data Fields

_u32 ip_address
 
_u8 mac [6]
 
_u16 reason
 

Field Documentation

_u32 ip_address
_u8 mac[6]
_u16 reason
struct SlIpV4AcquiredAsync_t

Data Fields

_u32 dns
 
_u32 gateway
 
_u32 ip
 

Field Documentation

_u32 dns
_u32 gateway
_u32 ip
struct SlIpV6AcquiredAsync_t

Data Fields

_u32 dns [4]
 
_u32 gateway [4]
 
_u32 ip [4]
 
_u32 type
 

Field Documentation

_u32 dns[4]
_u32 gateway[4]
_u32 ip[4]
_u32 type
struct SlNetAppEvent_t
+ Collaboration diagram for SlNetAppEvent_t:

Data Fields

_u32 Event
 
SlNetAppEventData_u EventData
 

Field Documentation

_u32 Event
union SlNetAppEventData_u
+ Collaboration diagram for SlNetAppEventData_u:

Data Fields

SlIpV4AcquiredAsync_t ipAcquiredV4
 
SlIpV6AcquiredAsync_t ipAcquiredV6
 
SlIpLeasedAsync_t ipLeased
 
SlIpReleasedAsync_t ipReleased
 
_u32 sd
 

Field Documentation

SlIpV4AcquiredAsync_t ipAcquiredV4
SlIpV6AcquiredAsync_t ipAcquiredV6
SlIpReleasedAsync_t ipReleased
_u32 sd
struct SlSockAddr_t

Data Fields

_u8 sa_data [14]
 
_u16 sa_family
 

Field Documentation

_u8 sa_data[14]
_u16 sa_family
struct SlSockAddrIn6_t
+ Collaboration diagram for SlSockAddrIn6_t:

Data Fields

SlIn6Addr_t sin6_addr
 
_u16 sin6_family
 
_u32 sin6_flowinfo
 
_u16 sin6_port
 
_u32 sin6_scope_id
 

Field Documentation

SlIn6Addr_t sin6_addr
_u16 sin6_family
_u32 sin6_flowinfo
_u16 sin6_port
_u32 sin6_scope_id
struct SlSockAddrIn_t
+ Collaboration diagram for SlSockAddrIn_t:

Data Fields

SlInAddr_t sin_addr
 
_u16 sin_family
 
_u16 sin_port
 
_i8 sin_zero [8]
 

Field Documentation

SlInAddr_t sin_addr
_u16 sin_family
_u16 sin_port
_i8 sin_zero[8]
struct SlSocketAsyncEvent_t

Data Fields

_u8pExtraInfo
 
_u8 sd
 
_u8 type
 
_i16 val
 

Field Documentation

_u8* pExtraInfo
_u8 sd
_u8 type
_i16 val
struct SlSockEvent_t
+ Collaboration diagram for SlSockEvent_t:

Data Fields

_u32 Event
 
SlSockEventData_u socketAsyncEvent
 

Field Documentation

_u32 Event
SlSockEventData_u socketAsyncEvent
union SlSockEventData_u
+ Collaboration diagram for SlSockEventData_u:

Data Fields

SlSocketAsyncEvent_t SockAsyncData
 
SlSockTxFailEventData_t SockTxFailData
 

Field Documentation

SlSocketAsyncEvent_t SockAsyncData
SlSockTxFailEventData_t SockTxFailData
struct SlSockIpMreq
+ Collaboration diagram for SlSockIpMreq:

Data Fields

SlInAddr_t imr_interface
 
SlInAddr_t imr_multiaddr
 

Field Documentation

SlInAddr_t imr_interface
SlInAddr_t imr_multiaddr
struct SlSockKeepalive_t

Data Fields

_u32 KeepaliveEnabled
 

Field Documentation

_u32 KeepaliveEnabled
struct SlSockNonblocking_t

Data Fields

_u32 NonblockingEnabled
 

Field Documentation

_u32 NonblockingEnabled
struct SlSockReuseaddr_t

Data Fields

_u32 ReuseaddrEnabled
 

Field Documentation

_u32 ReuseaddrEnabled
struct SlSockSecureMask

Data Fields

_u32 secureMask
 

Field Documentation

_u32 secureMask
struct SlSockSecureMethod

Data Fields

_u8 secureMethod
 

Field Documentation

_u8 secureMethod
struct SlSockTxFailEventData_t

Data Fields

_u8 padding
 
_u8 sd
 
_i16 status
 

Field Documentation

_u8 padding
_u8 sd
_i16 status
struct SlSockWinsize_t

Data Fields

_u32 Winsize
 

Field Documentation

_u32 Winsize
struct SlTimeval_t

Data Fields

SlTime_t tv_sec
 
SlSuseconds_t tv_usec
 

Field Documentation

SlTime_t tv_sec
SlSuseconds_t tv_usec
struct SlTransceiverRxOverHead_t

Data Fields

_u8 channel
 
_u8 padding
 
_u8 rate
 
_i8 rssi
 
_u32 timestamp
 

Field Documentation

_u8 channel
_u8 padding
_u8 rate
_i8 rssi
_u32 timestamp
struct sock_secureFiles

Data Fields

_u8 secureFiles [4]
 

Field Documentation

_u8 secureFiles[4]

Macro Definition Documentation

#define BSD_SOCKET_ID_MASK   (0x0F) /* Index using the LBS 4 bits for socket id 0-7 */
#define OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED   (2) /* remote side down from secure to unsecure */
#define RX_FRAGMENTATION_TOO_BIG   (1) /* connection less mode, rx packet fragmentation > 16K, packet is being released */
#define SECURE_MAX_DOMAIN_LENGTH   (64)
#define SL_AF_INET   (2) /* IPv4 socket (UDP, TCP, etc) */
#define SL_AF_INET6   (3) /* IPv6 socket (UDP, TCP, etc) */
#define SL_AF_INET6_EUI_48   (9)
#define SL_AF_PACKET   (17)
#define SL_AF_RF   (6) /* data include RF parameter, All layer by user (Wifi could be disconnected) */
#define SL_CONNECTION_PENDING   (-72) /* Transceiver - Device is connected, disconnect first to open transceiver */
#define SL_EACCES   (-13) /* Permission denied */
#define SL_EADDRINUSE   (-98) /* Address already in use */
#define SL_EADDRNOTAVAIL   (-99) /* Cannot assign requested address */
#define SL_EAFNOSUPPORT   (-97) /* Address family not supported by protocol */
#define SL_EAGAIN   (-11) /* Try again */
#define SL_EALREADY   (-114) /* Non blocking connect in progress, try again */
#define SL_EALREADY_ENABLED   (-21) /* Transceiver - Transceiver already ON. there could be only one */
#define SL_EAUTO_CONNECT_OR_CONNECTING   (-69) /* Transceiver - During connection, connected or auto mode started */
#define SL_EBADF   (-9) /* Bad file number */
#define SL_ECLOSE   (-15) /* close socket operation failed to transmit all queued packets */
#define SL_ECONNREFUSED   (-111) /* Connection refused */
#define SL_EDESTADDRREQ   (-89) /* Destination address required */
#define SL_EFAULT   (-14) /* Bad address */
#define SL_EINVAL   (-22) /* Invalid argument */
#define SL_EISCONN   (-106) /* Transport endpoint is already connected */
#define SL_ENETUNREACH   (-101) /* Network is unreachable */
#define SL_ENOBUFS   (-105) /* No buffer space available */
#define SL_ENOMEM   (-12) /* Out of memory */
#define SL_ENOPROTOOPT   (-92) /* Protocol not available */
#define SL_ENOTCONN   (-107) /* Transport endpoint is not connected */
#define SL_ENSOCK   (-10) /* The system limit on the total number of open socket, has been reached */
#define SL_EOBUFF   SL_ENOBUFS
#define SL_EOPNOTSUPP   (-95) /* Operation not supported on transport endpoint */
#define SL_EPROTONOSUPPORT   (-93) /* Protocol not supported */
#define SL_EPROTOTYPE   (-91) /* Protocol wrong type for socket */
#define SL_ESEC_ACCESS_DENIED   (-349) /* ssl/tls alerts */
#define SL_ESEC_AES_CCM_AUTH_E   (-181) /* AES-CCM Authentication check failure */
#define SL_ESEC_AES_GCM_AUTH_E   (-180) /* AES-GCM Authentication check failure */
#define SL_ESEC_ALGO_ID_E   (-133) /* setting algo id error */
#define SL_ESEC_ALT_NAME_E   (-177) /* alt name size problem, too big */
#define SL_ESEC_ASN_AFTER_DATE_E   (-151) /* ASN date error, current date after */
#define SL_ESEC_ASN_BEFORE_DATE_E   (-150) /* ASN date error, current date before */
#define SL_ESEC_ASN_BITSTR_E   (-147) /* ASN bit string error, wrong id */
#define SL_ESEC_ASN_DATE_SZ_E   (-149) /* ASN date error, bad size */
#define SL_ESEC_ASN_DH_KEY_E   (-158) /* ASN key init error, invalid input */
#define SL_ESEC_ASN_ECC_KEY_E   (-171) /* ASN ECC bad input */
#define SL_ESEC_ASN_EXPECT_0_E   (-146) /* ASN expect error, not zero */
#define SL_ESEC_ASN_GETINT_E   (-142) /* ASN get big _i16 error, invalid data */
#define SL_ESEC_ASN_INPUT_E   (-154) /* ASN input error, not enough data */
#define SL_ESEC_ASN_NTRU_KEY_E   (-159) /* ASN ntru key decode error, invalid input */
#define SL_ESEC_ASN_OBJECT_ID_E   (-144) /* ASN object id error, invalid id */
#define SL_ESEC_ASN_PARSE_E   (-140) /* ASN parsing error, invalid input */
#define SL_ESEC_ASN_RSA_KEY_E   (-143) /* ASN key init error, invalid input */
#define SL_ESEC_ASN_SIG_CONFIRM_E   (-155) /* ASN sig error, confirm failure */
#define SL_ESEC_ASN_SIG_HASH_E   (-156) /* ASN sig error, unsupported hash type */
#define SL_ESEC_ASN_SIG_KEY_E   (-157) /* ASN sig error, unsupported key type */
#define SL_ESEC_ASN_SIG_OID_E   (-152) /* ASN signature error, mismatched oid */
#define SL_ESEC_ASN_TAG_NULL_E   (-145) /* ASN tag error, not null */
#define SL_ESEC_ASN_TIME_E   (-153) /* ASN time error, unknown time type */
#define SL_ESEC_ASN_UNKNOWN_OID_E   (-148) /* ASN oid error, unknown sum id */
#define SL_ESEC_ASN_VERSION_E   (-141) /* ASN version error, invalid number */
#define SL_ESEC_BAD_CERT_MANAGER_ERROR   (-259) /* Bad Cert Manager */
#define SL_ESEC_BAD_CERTIFICATE   (-342) /* ssl/tls alerts */
#define SL_ESEC_BAD_CERTIFICATE_HASH_VALUE   (-414) /* ssl/tls alerts */
#define SL_ESEC_BAD_CERTIFICATE_STATUS_RESPONSE   (-413) /* ssl/tls alerts */
#define SL_ESEC_BAD_FUNC_ARG   (-173) /* Bad function argument provided */
#define SL_ESEC_BAD_HELLO   (-221) /* client hello malformed */
#define SL_ESEC_BAD_PATH_ERROR   (-258) /* Bad path for opendir */
#define SL_ESEC_BAD_RECORD_MAC   (-320) /* ssl/tls alerts */
#define SL_ESEC_BUFFER_E   (-132) /* output buffer too small or input too large */
#define SL_ESEC_BUFFER_ERROR   (-228) /* malformed buffer input */
#define SL_ESEC_BUILD_MSG_ERROR   (-220) /* build message failure */
#define SL_ESEC_CA_TRUE_E   (-138) /* setting CA basic constraint true error */
#define SL_ESEC_CERTIFICATE_EXPIRED   (-345) /* ssl/tls alerts */
#define SL_ESEC_CERTIFICATE_REVOKED   (-344) /* ssl/tls alerts */
#define SL_ESEC_CERTIFICATE_UNKNOWN   (-346) /* ssl/tls alerts */
#define SL_ESEC_CERTIFICATE_UNOBTAINABLE   (-411) /* ssl/tls alerts */
#define SL_ESEC_CLOSE_NOTIFY   (-300) /* ssl/tls alerts */
#define SL_ESEC_DATE_E   (-135) /* setting date validity error */
#define SL_ESEC_DECODE_ERROR   (-350) /* ssl/tls alerts */
#define SL_ESEC_DECOMPRESSION_FAILURE   (-330) /* ssl/tls alerts */
#define SL_ESEC_DECRYPT_ERROR   (-351) /* ssl/tls alerts */
#define SL_ESEC_DECRYPTION_FAILED   (-321) /* ssl/tls alerts */
#define SL_ESEC_DOMAIN_NAME_MISMATCH   (-222) /* peer subject name mismatch */
#define SL_ESEC_ECC_BAD_ARG_E   (-170) /* ECC input argument of wrong type */
#define SL_ESEC_ECC_CURVE_ERROR   (-251) /* Bad ECC Curve */
#define SL_ESEC_ECC_CURVE_OID_E   (-172) /* Unsupported ECC OID curve type */
#define SL_ESEC_ECC_CURVETYPE_ERROR   (-250) /* Bad ECC Curve Type */
#define SL_ESEC_ECC_EXPORT_ERROR   (-254) /* Bad ECC Export Key */
#define SL_ESEC_ECC_MAKEKEY_ERROR   (-253) /* Bad Make ECC Key */
#define SL_ESEC_ECC_PEERKEY_ERROR   (-252) /* Bad Peer ECC Key */
#define SL_ESEC_ECC_SHARED_ERROR   (-255) /* Bad ECC Shared Secret */
#define SL_ESEC_ENCRYPT_ERROR   (-214) /* error during encryption */
#define SL_ESEC_EXPORT_RESTRICTION   (-360) /* ssl/tls alerts */
#define SL_ESEC_EXTENSIONS_E   (-139) /* setting extensions error */
#define SL_ESEC_FATAL_ERROR   (-213) /* recvd alert fatal error */
#define SL_ESEC_GEN_COOKIE_E   (-277) /* Generate Cookie Error */
#define SL_ESEC_HANDSHAKE_FAILURE   (-340) /* ssl/tls alerts */
#define SL_ESEC_ILLEGAL_PARAMETER   (-347) /* ssl/tls alerts */
#define SL_ESEC_INCOMPLETE_DATA   (-210) /* don't have enough data to complete task */
#define SL_ESEC_INSUFFICIENT_SECURITY   (-371) /* ssl/tls alerts */
#define SL_ESEC_INTERNAL_ERROR   (-380) /* ssl/tls alerts */
#define SL_ESEC_ISSUER_E   (-137) /* setting issuer name error */
#define SL_ESEC_LENGTH_ERROR   (-241) /* record layer length error */
#define SL_ESEC_MATCH_SUITE_ERROR   (-291 ) /* can't match cipher suite */
#define SL_ESEC_MAX_CHAIN_ERROR   (-268) /* max chain depth exceeded */
#define SL_ESEC_MEMORY_ERROR   (-203) /* out of memory */
#define SL_ESEC_NO_CERTIFICATE   (-341) /* ssl/tls alerts */
#define SL_ESEC_NO_DH_PARAMS   (-219) /* server missing DH params */
#define SL_ESEC_NO_PASSWORD   (-176) /* no password provided by user */
#define SL_ESEC_NO_PEER_CERT   (-245) /* peer didn't send key */
#define SL_ESEC_NO_PEER_KEY   (-216) /* need peer's key */
#define SL_ESEC_NO_PEER_VERIFY   (-278) /* Need peer cert verify Error */
#define SL_ESEC_NO_PRIVATE_KEY   (-217) /* need the private key */
#define SL_ESEC_NO_RENEGOTIATION   (-400) /* ssl/tls alerts */
#define SL_ESEC_NOT_CA_ERROR   (-257) /* Not a CA cert error */
#define SL_ESEC_NOT_COMPILED_IN   (-174) /* Feature not compiled in */
#define SL_ESEC_NOT_READY_ERROR   (-224) /* handshake layer not ready */
#define SL_ESEC_OUT_OF_ORDER_E   (-273) /* out of order message */
#define SL_ESEC_PEER_KEY_ERROR   (-242) /* can't decode peer key */
#define SL_ESEC_PMS_VERSION_ERROR   (-225) /* pre m secret version error */
#define SL_ESEC_PROTOCOL_VERSION   (-370) /* ssl/tls alerts */
#define SL_ESEC_PUBLIC_KEY_E   (-134) /* setting public key error */
#define SL_ESEC_RECORD_OVERFLOW   (-322) /* ssl/tls alerts */
#define SL_ESEC_RSA_BUFFER_E   (-131) /* RSA buffer error, output too small or */
#define SL_ESEC_RSA_PRIVATE_ERROR   (-218) /* error during rsa priv op */
#define SL_ESEC_RSA_WRONG_TYPE_E   (-130) /* RSA wrong block type for RSA function */
#define SL_ESEC_SANITY_CIPHER_E   (-275) /* sanity check on cipher error */
#define SL_ESEC_SIDE_ERROR   (-244) /* wrong client/server type */
#define SL_ESEC_SOCKET_ERROR_E   (-208) /* error state on socket */
#define SL_ESEC_SOCKET_NODATA   (-209) /* expected data, not there */
#define SL_ESEC_SSL_NO_PEM_HEADER   (-272) /* no PEM header found */
#define SL_ESEC_SUBJECT_E   (-136) /* setting subject name error */
#define SL_ESEC_SUITES_ERROR   (-271) /* suites pointer error */
#define SL_ESEC_UNEXPECTED_MESSAGE   (-310) /* ssl/tls alerts */
#define SL_ESEC_UNICODE_SIZE_E   (-175) /* Unicode password too big */
#define SL_ESEC_UNKNOWN_CA   (-348) /* ssl/tls alerts */
#define SL_ESEC_UNKNOWN_HANDSHAKE_TYPE   (-207) /* weird handshake type */
#define SL_ESEC_UNKNOWN_RECORD_TYPE   (-211) /* unknown type in record hdr */
#define SL_ESEC_UNKNOWN_SNI_HOST_NAME_E   (-281) /* Unrecognized host name Error */
#define SL_ESEC_UNRECOGNIZED_NAME   (-412) /* ssl/tls alerts */
#define SL_ESEC_UNSUPPORTED_CERTIFICATE   (-343) /* ssl/tls alerts */
#define SL_ESEC_UNSUPPORTED_EXTENSION   (-410) /* ssl/tls alerts */
#define SL_ESEC_UNSUPPORTED_SUITE   (-290) /* unsupported cipher suite */
#define SL_ESEC_USER_CANCELLED   (-390) /* ssl/tls alerts */
#define SL_ESEC_VERIFY_CERT_ERROR   (-229) /* verify cert error */
#define SL_ESEC_VERIFY_FINISHED_ERROR   (-204) /* verify problem on finished */
#define SL_ESEC_VERIFY_MAC_ERROR   (-205) /* verify mac problem */
#define SL_ESEC_VERIFY_SIGN_ERROR   (-230) /* verify sign error */
#define SL_ESEC_VERSION_ERROR   (-226) /* record layer version error */
#define SL_ESEC_WANT_READ   (-223) /* want read, call again */
#define SL_ESEC_WANT_WRITE   (-227) /* want write, call again */
#define SL_ESEC_ZERO_RETURN   (-243) /* peer sent close notify */
#define SL_ESECBADCAFILE   (-456) /* error secure level bad CA file */
#define SL_ESECBADCERTFILE   (-457) /* error secure level bad Certificate file */
#define SL_ESECBADDHFILE   (-459) /* error secure level bad DH file */
#define SL_ESECBADPRIVATEFILE   (-458) /* error secure level bad private file */
#define SL_ESECCLOSED   (-452) /* secure layrer is closed by other size , tcp is still connected */
#define SL_ESECDATEERROR   (-461) /* connected with certificate date verification error */
#define SL_ESECDECRYPT   (-451) /* error secure level, decrypt recv packet fail */
#define SL_ESECGENERAL   (-450) /* error secure level general error */
#define SL_ESECHANDSHAKETIMEDOUT   (-462) /* connection timed out due to handshake time */
#define SL_ESECMEMORY   (-455) /* error secure level No memory space available */
#define SL_ESECNOCAFILE   (-454) /* error secure level CA file not found*/
#define SL_ESECSNOVERIFY   (-453) /* Connected without server verification */
#define SL_ESECT00MANYSSLOPENED   (-460) /* MAX SSL Sockets are opened */
#define SL_ESOCKTNOSUPPORT   (-94) /* Socket type not supported */
#define SL_ETIMEDOUT   (-110) /* Connection timed out */
#define SL_EUNSUPPORTED_ROLE   (-86) /* Transceiver - Trying to start when WLAN role is AP or P2P GO */
#define SL_EWOULDBLOCK   SL_EAGAIN
#define SL_FD_SETSIZE   SL_MAX_SOCKETS /* Number of sockets to select on - same is max sockets! */
#define SL_INADDR_ANY   (0) /* bind any address */
#define SL_INEXE   (-8) /* socket command in execution */
#define SL_IP_ADD_MEMBERSHIP   (65) /* Join IPv4 multicast membership */
#define SL_IP_DROP_MEMBERSHIP   (66) /* Leave IPv4 multicast membership */
#define SL_IP_HDRINCL   (67) /* Raw socket IPv4 header included. */
#define SL_IP_LEASE_EXPIRED   (2)
#define SL_IP_LEASE_PEER_DECLINE   (1)
#define SL_IP_LEASE_PEER_RELEASE   (0)
#define SL_IP_MULTICAST_IF   (60) /* Specify outgoing multicast interface */
#define SL_IP_MULTICAST_TTL   (61) /* Specify the TTL value to use for outgoing multicast packet. */
#define SL_IP_RAW_IPV6_HDRINCL   (69) /* Transmitted buffer over IPv6 socket contains IPv6 header. */
#define SL_IP_RAW_RX_NO_HEADER   (68) /* Proprietary socket option that does not includeIPv4/IPv6 header (and extension headers) on received raw sockets*/
#define SL_IPPROTO_IP   (2) /* Define the IP option category. */
#define SL_IPPROTO_RAW   (255) /* Raw Socket */
#define SL_IPPROTO_TCP   (6) /* TCP Raw Socket */
#define SL_IPPROTO_UDP   (17) /* UDP Raw Socket */
#define SL_MSG_DONTWAIT   (0x00000008) /* Nonblocking IO */
#define SL_PF_INET   AF_INET
#define SL_PF_INET6   AF_INET6
#define SL_SEC_MASK_SECURE_DEFAULT   ((SL_SEC_MASK_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 << 1) - 1)
#define SL_SEC_MASK_SSL_RSA_WITH_RC4_128_MD5   (1 << 1)
#define SL_SEC_MASK_SSL_RSA_WITH_RC4_128_SHA   (1 << 0)
#define SL_SEC_MASK_TLS_DHE_RSA_WITH_AES_256_CBC_SHA   (1 << 3)
#define SL_SEC_MASK_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256   (1 << 9)
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256   (1 << 8)
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA   (1 << 4)
#define SL_SEC_MASK_TLS_ECDHE_RSA_WITH_RC4_128_SHA   (1 << 5)
#define SL_SEC_MASK_TLS_RSA_WITH_AES_128_CBC_SHA256   (1 << 6)
#define SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA   (1 << 2)
#define SL_SEC_MASK_TLS_RSA_WITH_AES_256_CBC_SHA256   (1 << 7)
#define SL_SEC_SOCKET   (100) /* Secured Socket Layer (SSL,TLS) */
#define SL_SO_CHANGE_CHANNEL   (28) /* This option is available only when transceiver started */
#define SL_SO_KEEPALIVE   (9) /* Connections are kept alive with periodic messages */
#define SL_SO_NONBLOCKING   (24) /* Enable . disable nonblocking mode */
#define SL_SO_PHY_NUM_FRAMES_TO_TX   (102) /* Number of frames to transmit */
#define SL_SO_PHY_PREAMBLE   (103) /* Preamble for transmission */
#define SL_SO_PHY_RATE   (100) /* WLAN Transmit rate */
#define SL_SO_PHY_TX_POWER   (101) /* TX Power level */
#define SL_SO_RCVBUF   (8) /* Setting TCP receive buffer size */
#define SL_SO_RCVTIMEO   (20) /* Enable receive timeout */
#define SL_SO_SEC_METHOD_DLSV1   (5) /* security metohd DTL v1 */
#define SL_SO_SEC_METHOD_SSLV3   (0) /* security metohd SSL v3*/
#define SL_SO_SEC_METHOD_SSLv3_TLSV1_2   (4) /* use highest possible version from SSLv3 - TLS 1.2*/
#define SL_SO_SEC_METHOD_TLSV1   (1) /* security metohd TLS v1*/
#define SL_SO_SEC_METHOD_TLSV1_1   (2) /* security metohd TLS v1_1*/
#define SL_SO_SEC_METHOD_TLSV1_2   (3) /* security metohd TLS v1_2*/
#define SL_SO_SECMETHOD   (25) /* security metohd */
#define SL_SO_SECURE_FILES   (27) /* security files */
#define SL_SO_SECURE_FILES_CA_FILE_NAME   (32) /* This option used to configue secure file */
#define SL_SO_SECURE_FILES_CERTIFICATE_FILE_NAME   (31) /* This option used to configue secure file */
#define SL_SO_SECURE_FILES_DH_KEY_FILE_NAME   (33) /* This option used to configue secure file */
#define SL_SO_SECURE_FILES_PRIVATE_KEY_FILE_NAME   (30) /* This option used to configue secure file */
#define SL_SO_SECURE_MASK   (26) /* security mask */
#define SL_SOC_ERROR   (-1) /* Failure. */
#define SL_SOC_OK   ( 0) /* Success. */
#define SL_SOCK_DGRAM   (2) /* UDP Socket */
#define SL_SOCK_RAW   (3) /* Raw socket */
#define SL_SOCK_STREAM   (1) /* TCP Socket */
#define SL_SOCKET_ERROR_E   (-208) /* Error state on socket */
#define SL_SOCKET_PAYLOAD_TYPE_MASK   (0xF0) /*4 bits type, 4 bits sockets id */
#define SL_SOCKET_PAYLOAD_TYPE_RAW_IP4   (0xa0)
#define SL_SOCKET_PAYLOAD_TYPE_RAW_IP6   (SL_SOCKET_PAYLOAD_TYPE_RAW_IP4 )
#define SL_SOCKET_PAYLOAD_TYPE_RAW_PACKET   (0x90) /* 1536 bytes */
#define SL_SOCKET_PAYLOAD_TYPE_RAW_TRANCEIVER   (0x80) /* 1536 bytes */
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV4   (0x10) /* 1460 bytes */
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV4_SECURE   (0x50) /* */
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV6   (0x30) /* 1440 bytes */
#define SL_SOCKET_PAYLOAD_TYPE_TCP_IPV6_SECURE   (0x70) /* */
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV4   (0x00) /* 1472 bytes */
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV4_SECURE   (0x40) /* */
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV6   (0x20) /* 1452 bytes */
#define SL_SOCKET_PAYLOAD_TYPE_UDP_IPV6_SECURE   (0x60) /* */
#define SL_SOL_PHY_OPT   (3) /* Define the PHY option category. */
#define SL_SOL_SOCKET   (1) /* Define the socket option category. */
#define SO_SECURE_DOMAIN_NAME_VERIFICATION   (35)
#define SSL_ACCEPT   (0) /* accept failed due to ssl issue ( tcp pass) */

Typedef Documentation

typedef struct SlFdSet_t SlFdSet_t
typedef struct SlIn6Addr_t SlIn6Addr_t
typedef struct SlInAddr_t SlInAddr_t
typedef struct SlSockAddr_t SlSockAddr_t
typedef _u16 SlSocklen_t
typedef _u32 SlTime_t
typedef struct SlTimeval_t SlTimeval_t

Enumeration Type Documentation

Enumerator
SL_BSD_SECURED_PRIVATE_KEY_IDX 
SL_BSD_SECURED_CERTIFICATE_IDX 
SL_BSD_SECURED_CA_IDX 
SL_BSD_SECURED_DH_IDX 

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:32 by doxygen 1.8.8