FreeRTOS
Macros
Secure Sockets Error Codes

Error codes returned by the SOCKETS API. More...

Macros

#define SOCKETS_ERROR_NONE   ( 0 )
 
#define SOCKETS_SOCKET_ERROR   ( -1 )
 
#define SOCKETS_EWOULDBLOCK   ( -11 )
 
#define SOCKETS_ENOMEM   ( -12 )
 
#define SOCKETS_EINVAL   ( -22 )
 
#define SOCKETS_ENOPROTOOPT   ( -109 )
 
#define SOCKETS_ENOTCONN   ( -126 )
 
#define SOCKETS_EISCONN   ( -127 )
 
#define SOCKETS_ECLOSED   ( -128 )
 
#define SOCKETS_TLS_INIT_ERROR   ( -1001 )
 
#define SOCKETS_TLS_HANDSHAKE_ERROR   ( -1002 )
 
#define SOCKETS_TLS_SERVER_UNVERIFIED   ( -1003 )
 
#define SOCKETS_TLS_RECV_ERROR   ( -1004 )
 
#define SOCKETS_TLS_SEND_ERROR   ( -1005 )
 
#define SOCKETS_PERIPHERAL_RESET   ( -1006 )
 

Detailed Description

Error codes returned by the SOCKETS API.

Note that SOCKETS API may also propagate port-specific error codes when they are more descriptive. See your port's error codes for more details. PORT_SPECIFIC_LINK

Macro Definition Documentation

◆ SOCKETS_ECLOSED

#define SOCKETS_ECLOSED   ( -128 )

The supplied socket has already been closed.

Definition at line 91 of file aws_secure_sockets.h.

◆ SOCKETS_EINVAL

#define SOCKETS_EINVAL   ( -22 )

Invalid argument.

Definition at line 87 of file aws_secure_sockets.h.

◆ SOCKETS_EISCONN

#define SOCKETS_EISCONN   ( -127 )

The supplied socket is already connected.

Definition at line 90 of file aws_secure_sockets.h.

◆ SOCKETS_ENOMEM

#define SOCKETS_ENOMEM   ( -12 )

Memory allocation failed.

Definition at line 86 of file aws_secure_sockets.h.

◆ SOCKETS_ENOPROTOOPT

#define SOCKETS_ENOPROTOOPT   ( -109 )

A bad option was specified .

Definition at line 88 of file aws_secure_sockets.h.

◆ SOCKETS_ENOTCONN

#define SOCKETS_ENOTCONN   ( -126 )

The supplied socket is not connected.

Definition at line 89 of file aws_secure_sockets.h.

◆ SOCKETS_ERROR_NONE

#define SOCKETS_ERROR_NONE   ( 0 )

No error.

Definition at line 83 of file aws_secure_sockets.h.

◆ SOCKETS_EWOULDBLOCK

#define SOCKETS_EWOULDBLOCK   ( -11 )

A resource is temporarily unavailable.

Definition at line 85 of file aws_secure_sockets.h.

◆ SOCKETS_PERIPHERAL_RESET

#define SOCKETS_PERIPHERAL_RESET   ( -1006 )

Communications peripheral has been reset.

Definition at line 97 of file aws_secure_sockets.h.

◆ SOCKETS_SOCKET_ERROR

#define SOCKETS_SOCKET_ERROR   ( -1 )

Catch-all sockets error code.

Definition at line 84 of file aws_secure_sockets.h.

◆ SOCKETS_TLS_HANDSHAKE_ERROR

#define SOCKETS_TLS_HANDSHAKE_ERROR   ( -1002 )

TLS handshake failed.

Definition at line 93 of file aws_secure_sockets.h.

◆ SOCKETS_TLS_INIT_ERROR

#define SOCKETS_TLS_INIT_ERROR   ( -1001 )

TLS initialization failed.

Definition at line 92 of file aws_secure_sockets.h.

◆ SOCKETS_TLS_RECV_ERROR

#define SOCKETS_TLS_RECV_ERROR   ( -1004 )

TLS receive operation failed.

Definition at line 95 of file aws_secure_sockets.h.

◆ SOCKETS_TLS_SEND_ERROR

#define SOCKETS_TLS_SEND_ERROR   ( -1005 )

TLS send operation failed.

Definition at line 96 of file aws_secure_sockets.h.

◆ SOCKETS_TLS_SERVER_UNVERIFIED

#define SOCKETS_TLS_SERVER_UNVERIFIED   ( -1003 )

A connection was made but the server could not be verified. It is recommended that the socket be closed.

Definition at line 94 of file aws_secure_sockets.h.