proxygen
|
Public Member Functions | |
socklen_t | pathLength () const |
void | init () |
void | init (const ExternalUnixAddr &other) |
void | copy (const ExternalUnixAddr &other) |
void | free () |
Public Attributes | |
struct sockaddr_un * | addr |
socklen_t | len |
Unix socket addresses require more storage than IPv4 and IPv6 addresses, and are comparatively little-used.
Therefore SocketAddress' internal storage_ member variable doesn't contain room for a full unix address, to avoid wasting space in the common case. When we do need to store a Unix socket address, we use this ExternalUnixAddr structure to allocate a struct sockaddr_un separately on the heap.
Definition at line 555 of file SocketAddress.h.
|
inline |
Definition at line 573 of file SocketAddress.h.
Referenced by folly::SocketAddress::operator=().
|
inline |
Definition at line 577 of file SocketAddress.h.
References addr, folly::SocketAddress::getAddrInfo(), folly::SocketAddress::getIpString(), folly::SocketAddress::setFromAddrInfo(), folly::SocketAddress::setFromLocalAddr(), folly::SocketAddress::setFromSocket(), string, uint16_t, and folly::SocketAddress::updateUnixAddressLength().
Referenced by folly::SocketAddress::operator=(), folly::SocketAddress::reset(), and folly::SocketAddress::~SocketAddress().
|
inline |
Definition at line 563 of file SocketAddress.h.
Referenced by folly::SocketAddress::operator=(), and folly::SocketAddress::SocketAddress().
|
inline |
Definition at line 568 of file SocketAddress.h.
|
inline |
Definition at line 559 of file SocketAddress.h.
Referenced by folly::SocketAddress::operator<(), and folly::SocketAddress::operator==().
struct sockaddr_un* folly::SocketAddress::ExternalUnixAddr::addr |
Definition at line 556 of file SocketAddress.h.
Referenced by copy(), free(), folly::SocketAddress::getAddress(), init(), folly::SocketAddress::operator<(), and folly::SocketAddress::operator==().
socklen_t folly::SocketAddress::ExternalUnixAddr::len |
Definition at line 557 of file SocketAddress.h.
Referenced by copy(), folly::SocketAddress::getAddress(), init(), and folly::SocketAddress::operator==().