#include <Address.h>
Inheritance diagram for ASSA::Address:

| Public Types | |
| typedef int | addrstate | 
| enum | addr_state_t { goodbit = 0, badbit = 1 } | 
| State bits.  More... | |
| Public Member Functions | |
| 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 const int | getLength () const =0 | 
| Return length of the underlying address structure. | |
| virtual SA * | getAddress () const =0 | 
| Retrieve pointer to the address structure. | |
| virtual void | dump () | 
| Dump object state to the log file. | |
| Protected Member Functions | |
| void | setstate (addrstate flag_) | 
| Set state of the Address object. | |
| Private Attributes | |
| unsigned char | m_state | 
Definition at line 51 of file Address.h.
| 
 | 
| 
 | 
| 
 | 
| State bits. 
 Definition at line 54 of file Address.h. 
 | 
| 
 | 
| Constructor. 
 Definition at line 65 of file Address.h. References trace. 00065 : m_state (Address::goodbit) { trace("Address::Address"); } 
 | 
| 
 | 
| Destructor. 
 Definition at line 68 of file Address.h. 
 | 
| 
 | 
| Indicates whether there was error during address construction process i.e. host or port lookup failure or invalid format used. 
 Definition at line 80 of file Address.h. References badbit, and m_state. Referenced by ASSA::Connector< SERVICE_HANDLER, PEER_CONNECTOR >::connect(), and operator!(). 00080 { return m_state & Address::badbit; } 
 | 
| 
 | 
| Dump object state to the log file. 
 Reimplemented in ASSA::INETAddress. Definition at line 101 of file Address.h. References DL, good(), ASSA::TRACE, and trace. Referenced by ASSA::INETAddress::dump(). 
 | 
| 
 | 
| Retrieve pointer to the address structure. 
 Implemented in ASSA::INETAddress, and ASSA::UNIXAddress. Referenced by ASSA::UDPSocket::bind(), ASSA::IPv4Socket::bind(), ASSA::IPv4Socket::connect(), ASSA::ConUDPSocket::connect(), ASSA::Acceptor< SERVICE_HANDLER, PEER_ACCEPTOR >::open(), ASSA::UnConUDPSocket::recvfrom(), and ASSA::UnConUDPSocket::sendto(). | 
| 
 | 
| Return length of the underlying address structure. 
 Implemented in ASSA::INETAddress, and ASSA::UNIXAddress. Referenced by ASSA::UDPSocket::bind(), ASSA::IPv4Socket::bind(), ASSA::IPv4Socket::connect(), ASSA::ConUDPSocket::connect(), ASSA::UnConUDPSocket::recvfrom(), and ASSA::UnConUDPSocket::sendto(). | 
| 
 | 
| Valid address is constructed. 
 
 Definition at line 73 of file Address.h. References m_state. Referenced by dump(), and operator void *(). 00073 { return m_state == 0; } 
 | 
| 
 | 
| Conversion to void * (or bool) for testing where bool is required (in conditional statements). 
 
 Definition at line 86 of file Address.h. References good(). 00086 { return (void*) good (); } 
 | 
| 
 | 
| Alias to bad (). 
 
 Definition at line 91 of file Address.h. References bad(). 00091 { return bad (); } 
 | 
| 
 | 
| Set state of the Address object. 
 
 Definition at line 111 of file Address.h. References m_state. Referenced by ASSA::INETAddress::createHostPort(), ASSA::INETAddress::getHostName(), ASSA::INETAddress::getServiceByName(), and ASSA::UNIXAddress::UNIXAddress(). 00111 { m_state |= flag_; } 
 | 
| 
 | 
| 
 Definition at line 61 of file Address.h. Referenced by bad(), good(), and setstate(). | 
 1.4.6
 1.4.6