3.1.7.7.4 Socket Configuration Struct

RNWF Socket Configuration Struct

Socket configuration struct.
typedef struct {  
    uint32_t    sock_id;                /**<Socket ID */
    uint8_t     sock_keepalive;         /**<Keep-Alive option*/
    uint8_t     sock_nodelay;           /**<Socket NAGLE/NoDelay*/    
}RNWF_NET_SOCKET_CONFIG_t;

RNWF Socket Parameters Struct

typedef struct {    
	    RNWF_BIND_TYPE_t            bind_type;          /**<Bind type of socket*/
	    RNWF_SOCK_TYPE_t            sock_type;          /**<UDP or TCP socket type*/
	    uint16_t                    sock_port;          /**<Server or Client port number*/
	    const char                  *sock_addr;         /**<Socket Address (IPv4 Address)*/
	    uint32_t                    sock_master;        /**<Server Socket ID*/
	    uint8_t                     tls_conf;           /**<TLS configuration */
	   /* feature addition from FW v2.0.0*/    
	    RNWF_SOCK_IP_VERSION_t      sockIP;             /**<Socket IP protocol Version*/
}RNWF_NET_SOCKET_t;

RNWF Network Socket IP Configurations: Socket IP Version

typedef enum {
	    RNWF_NET_SOCK_IPv4 = 4,                              /**<Net-Sock IP proto IPv4*/
	    RNWF_NET_SOCK_LINK_LOCAL_IPv6 = 6,      /**<Net-Sock IP proto link-local IPv6*/
	    RNWF_NET_SOCK_GLOBAL_IPv6 = 6,             /**<Net-Sock IP proto global IPv6*/
}RNWF_SOCK_IP_VERSION_t;

RNWF Socket Type

typedef enum    {    
	    RNWF_SOCK_UDP = 1,                  /**<UDP Socket type*/
	    RNWF_SOCK_TCP,                      /**<TCP Socket type*/
}RNWF_SOCK_TYPE_t;