...
p_sock_id | Pointer to a variable that will receive the socket ID opened from this function. |
p_remote_host_name | Pointer to a string that contains the remote host name to resolve: Can be an IP (IPv4 or IPv6) or a host name (resolved using DNS). |
remote_port_nbr | Port of the remote host. |
p_sock_addr | Pointer Pointer to a variable that will receive the socket address of the remote host. (Can be set to DEF_NULL if the returned value is not required). |
p_secure_cfg | Pointer to the secure configuration (TLS/SSL): DEF_NULL, if no security enabled. Pointer to a structure that contains the TLS/SSL parameters, if the TLS/SSL must be active on the connection. |
req_timeout_ms | Connection timeout in ms. |
p_err | Pointer to variable that will receive the return error code from this function. |
Returned Value
NET_IP_ADDR_FAMILY_IPv4, if the connected successfully using an IPv4 address.
...