Net address. More...
#include <net.h>
Data Fields | ||
bio_addr_type_t | type | |
Address type. | ||
union { | ||
char ipv4 [4] | ||
Raw IPv4 address. More... | ||
char ipv6 [16] | ||
Raw IPv6 address. More... | ||
struct { | ||
size_t len | ||
char name [256] | ||
} named | ||
"Named" socket address. More... | ||
}; | ||
Net address.
char bio_addr_t::ipv4[4] |
Raw IPv4 address.
char bio_addr_t::ipv6[16] |
Raw IPv6 address.
struct { ... } bio_addr_t::named |
"Named" socket address.
This should always use forward slash (/
) regardless of platform.
On Linux, this will be mapped to a unix domain socket. If the path starts with a @
or NULL
(\0
) character, it will be treated as an abstract socket.
On Windows, this will always be implemented as a named pipe which is similar to an abstract socket in Linux. The @
prefix will be ignored. The prefix \\.\pipe\
will be prepended. Forward slashes will be translated into backslashes (\
)
Therefore, the most cross-platform and consistent name is to use the syntax: @path/name
.
bio_addr_type_t bio_addr_t::type |
Address type.