bio
 
Loading...
Searching...
No Matches
bio_addr_t Struct Reference

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...
 
};  
 

Detailed Description

Net address.

Field Documentation

◆ ipv4

char bio_addr_t::ipv4[4]

Raw IPv4 address.

◆ ipv6

char bio_addr_t::ipv6[16]

Raw IPv6 address.

◆ [struct]

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.

◆ type

bio_addr_type_t bio_addr_t::type

Address type.


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