16 # include <netinet/in.h>
18 # include <sys/types.h>
19 # include <sys/socket.h>
20 # include <netinet/in.h>
21 # include <arpa/inet.h>
33 typedef struct sockaddr
SA;
34 typedef struct sockaddr_in
SA_IN;
44 typedef struct sockaddr_un
SA_UN;
86 operator void* ()
const {
return (
void*)
good (); }
104 DL((
TRACE,
"state - %s\n",
good () ?
"good" :
"bad"));
A collection of assert function wrappers.
An abstraction to message logging facility.
#define trace(s)
trace() is used to trace function call chain in C++ program.
#define DL(X)
A macro for writing debug message to the Logger.
bool bad() const
Indicates whether there was error during address construction process i.e.
virtual ~Address()
Destructor.
virtual void dump()
Dump object state to the log file.
virtual SA * getAddress() const =0
Retrieve pointer to the address structure.
bool good() const
Valid address is constructed.
virtual const int getLength() const =0
Return length of the underlying address structure.
bool operator!() const
Alias to bad ().
void setstate(addrstate flag_)
Set state of the Address object.
@ TRACE
Function call trace