1.3.3.17 SYS_NET_STATUS Enum

C

typedef enum
{
    // Net Instance is Idle/ Not in Use
    SYS_NET_STATUS_IDLE = 0,
    
    // Lower Layer is Down
    SYS_NET_STATUS_LOWER_LAYER_DOWN,
    
    // Resolving DNS of NET Server for the Client to connect
    SYS_NET_STATUS_RESOLVING_DNS,
    
    // Net Server IP Available for the Client to connect
    SYS_NET_STATUS_DNS_RESOLVED,
    
    // Net Server Awaiting Connection
    SYS_NET_STATUS_SERVER_AWAITING_CONNECTION,
    
    // Net Client connecting to Server
    SYS_NET_STATUS_CLIENT_CONNECTING,
    
    // Net Client Waiting for SNTP Time Stamp
    SYS_NET_STATUS_WAIT_FOR_SNTP,
    
    // Net Client Starting TLS Negotiations
    SYS_NET_STATUS_TLS_NEGOTIATING,
    
    // Net Instance TLS Negotiation Failed
    SYS_NET_STATUS_TLS_NEGOTIATION_FAILED,
    // Net Instance connected to the peer
    SYS_NET_STATUS_CONNECTED,
    
    // Net Instance Failed to open socket
    SYS_NET_STATUS_SOCK_OPEN_FAILED,
    
    // Net Instance Failed to Resolve DNS
    SYS_NET_STATUS_DNS_RESOLVE_FAILED,
    
    // Net Instance in disconnected state
    SYS_NET_STATUS_DISCONNECTED,
    
    // Net Instance received FIN from peer
    SYS_NET_STATUS_PEER_SENT_FIN,
    
    // Net Instance connected to the peer but the lower layer is down
    SYS_NET_STATUS_CONNECTED_LL_DOWN,
} SYS_NET_STATUS;

Summary

Identifies the current status of the Sys Net Instance.

Remarks

None.