Anjay Lite
Loading...
Searching...
No Matches
anj_net_socket_configuration_t Struct Reference

#include <anj_net_api.h>

Data Fields

anj_net_address_family_setting_t af_setting
 

Detailed Description

Structure that contains additional configuration options for creating TCP and UDP network sockets.

Field Documentation

◆ af_setting

Sets the IP protocol version used for communication. Note that setting it explicitly to ANJ_NET_AF_SETTING_FORCE_IPV4 or ANJ_NET_AF_SETTING_FORCE_INET6 will result in limiting the socket to support only addresses of that specific family. Using ANJ_NET_AF_SETTING_PREFERRED_INET4 or ANJ_NET_AF_SETTING_PREFERRED_INET6 may result in creating IPv4 or IPv6 socket depending on the outcome of address resolution, while using ANJ_NET_AF_SETTING_UNSPEC might be implementation specific.


The documentation for this struct was generated from the following file: