Anjay Lite
|
#include <anj_net_api.h>
Data Fields | |
anj_net_address_family_setting_t | af_setting |
Structure that contains additional configuration options for creating TCP and UDP network sockets.
anj_net_address_family_setting_t 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.