libassa 3.5.1
|
#include <UNIXAddress.h>
Public Member Functions | |
UNIXAddress (const char *socket_name_) | |
Constructor. | |
UNIXAddress (SA *socket_address_) | |
Copy constructor. | |
virtual | ~UNIXAddress () |
Destructor. | |
const int | getLength () const |
Retrieve address length. | |
SA * | getAddress () const |
Retrieve underlying address structure. | |
![]() | |
Address () | |
Constructor. | |
virtual | ~Address () |
Destructor. | |
bool | good () const |
Valid address is constructed. | |
bool | bad () const |
Indicates whether there was error during address construction process i.e. | |
operator void * () const | |
Conversion to void * (or bool) for testing where bool is required (in conditional statements). | |
bool | operator! () const |
Alias to bad (). | |
virtual void | dump () |
Dump object state to the log file. | |
Private Attributes | |
SA_UN | m_address |
UNIX socket address structure. | |
Additional Inherited Members | |
![]() | |
enum | addr_state_t { goodbit =0 , badbit =1 } |
State bits. More... | |
typedef int | addrstate |
![]() | |
void | setstate (addrstate flag_) |
Set state of the Address object. | |
Definition at line 28 of file UNIXAddress.h.
Constructor.
socket_name_ | UNIX path name |
Definition at line 21 of file UNIXAddress.cpp.
References ASSA::ASSAERR, ASSA::Address::badbit, EL, m_address, ASSA::Address::setstate(), and trace.
UNIXAddress::UNIXAddress | ( | SA * | socket_address_ | ) |
Copy constructor.
socket_address_ | address to copy from |
Definition at line 36 of file UNIXAddress.cpp.
References ASSA::ASSAERR, ASSA::Address::badbit, EL, m_address, ASSA::Address::setstate(), and trace.
|
inlinevirtual |
|
inlinevirtual |
Retrieve underlying address structure.
Implements ASSA::Address.
Definition at line 63 of file UNIXAddress.h.
References m_address.
Retrieve address length.
Implements ASSA::Address.
Definition at line 59 of file UNIXAddress.h.
References m_address.
|
private |
UNIX socket address structure.
Definition at line 51 of file UNIXAddress.h.
Referenced by getAddress(), getLength(), UNIXAddress(), and UNIXAddress().