Secure Sockets
Enumerated types

General Description

Enumerations

enum  cy_socket_ip_version_t {
  CY_SOCKET_IP_VER_V4 = 4 ,
  CY_SOCKET_IP_VER_V6 = 6
}
 IP Version. More...
 
enum  cy_socket_tls_auth_mode_t {
  CY_SOCKET_TLS_VERIFY_NONE = 0 ,
  CY_SOCKET_TLS_VERIFY_OPTIONAL = 1 ,
  CY_SOCKET_TLS_VERIFY_REQUIRED = 2
}
 Options for socket option CY_SOCKET_SO_TLS_AUTH_MODE. More...
 
enum  cy_socket_interface_t {
  CY_SOCKET_STA_INTERFACE = 0 ,
  CY_SOCKET_AP_INTERFACE = 1 ,
  CY_SOCKET_ETH0_INTERFACE = 2 ,
  CY_SOCKET_ETH1_INTERFACE = 3
}
 Options for socket option CY_SOCKET_SO_BINDTODEVICE. More...
 

Enumeration Type Documentation

◆ cy_socket_ip_version_t

IP Version.

Enumerator
CY_SOCKET_IP_VER_V4 

IPv4 protocol.

CY_SOCKET_IP_VER_V6 

IPv6 protocol.

◆ cy_socket_tls_auth_mode_t

Options for socket option CY_SOCKET_SO_TLS_AUTH_MODE.

Enumerator
CY_SOCKET_TLS_VERIFY_NONE 

Peer certificate is not checked (default authentication mode for server sockets).

CY_SOCKET_TLS_VERIFY_OPTIONAL 

Peer certificate is checked, but the handshake continues even if verification fails.

CY_SOCKET_TLS_VERIFY_REQUIRED 

Peer must present a valid certificate; handshake is aborted if verification failed (default authentication mode for client sockets).

◆ cy_socket_interface_t

Options for socket option CY_SOCKET_SO_BINDTODEVICE.

Enumerator
CY_SOCKET_STA_INTERFACE 

STA or Client Interface

CY_SOCKET_AP_INTERFACE 

softAP Interface

CY_SOCKET_ETH0_INTERFACE 

Ethernet Interface index 0.

CY_SOCKET_ETH1_INTERFACE 

Ethernet Interface index 1.