libBsdSockets
C++ Wrapper classes to the BSD Socket API
BsdSockets::LowLevelAddress Class Referenceabstract

Interface for the low-level address implementation. More...

#include <LowLevelAddress.h>

Inheritance diagram for BsdSockets::LowLevelAddress:

Public Types

typedef std::shared_ptr< LowLevelAddressPtr
 

Public Member Functions

virtual ~LowLevelAddress ()
 
virtual const struct sockaddr & getSockAddr () const =0
 
virtual struct sockaddr & getSockAddr ()=0
 
virtual socklen_t getSockAddrLen () const =0
 

Detailed Description

Interface for the low-level address implementation.

This class provides access to the low-level sockaddr and socklen_t necessary for low-level bsd socket implementations. This is also available to the user if they need it.

This is an integral part of the Address class refactored to avoid requiring the definition of the low level types in Address.h.

Definition at line 35 of file LowLevelAddress.h.

Member Typedef Documentation

◆ Ptr

Definition at line 37 of file LowLevelAddress.h.

Constructor & Destructor Documentation

◆ ~LowLevelAddress()

virtual BsdSockets::LowLevelAddress::~LowLevelAddress ( )
inlinevirtual

Virtual destructor to support derived classes

Definition at line 40 of file LowLevelAddress.h.

Member Function Documentation

◆ getSockAddr() [1/2]

virtual const struct sockaddr& BsdSockets::LowLevelAddress::getSockAddr ( ) const
pure virtual
Returns
the low-level sockaddr the Address represents

Implemented in BsdSockets::LowLevelAddressType< Impl >.

◆ getSockAddr() [2/2]

virtual struct sockaddr& BsdSockets::LowLevelAddress::getSockAddr ( )
pure virtual
Returns
the low-level sockaddr the Address represents

Implemented in BsdSockets::LowLevelAddressType< Impl >.

◆ getSockAddrLen()

virtual socklen_t BsdSockets::LowLevelAddress::getSockAddrLen ( ) const
pure virtual
Returns
the length of the low-level the sockaddr the Address represents

Implemented in BsdSockets::LowLevelAddressType< Impl >.


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