libassa
3.5.1
|
#include <UNIXAddress.h>
Public Member Functions | |
UNIXAddress (const char *socket_name_) | |
Constructor. More... | |
UNIXAddress (SA *socket_address_) | |
Copy constructor. More... | |
virtual | ~UNIXAddress () |
Destructor. More... | |
const int | getLength () const |
Retrieve address length. More... | |
SA * | getAddress () const |
Retrieve underlying address structure. More... | |
![]() | |
Address () | |
Constructor. More... | |
virtual | ~Address () |
Destructor. More... | |
bool | good () const |
Valid address is constructed. More... | |
bool | bad () const |
Indicates whether there was error during address construction process i.e. More... | |
operator void * () const | |
Conversion to void * (or bool) for testing where bool is required (in conditional statements). More... | |
bool | operator! () const |
Alias to bad (). More... | |
virtual void | dump () |
Dump object state to the log file. More... | |
Private Attributes | |
SA_UN | m_address |
UNIX socket address structure. More... | |
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. More... | |
Definition at line 28 of file UNIXAddress.h.
UNIXAddress::UNIXAddress | ( | const char * | socket_name_ | ) |
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.
Referenced by ASSA::ConUDPSocket::unconnect().
|
inlinevirtual |
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(), and UNIXAddress().