28 #ifndef __CASOCKETADDRUNIX__
29 #define __CASOCKETADDRUNIX__
63 return sizeof(sockaddr_un);
97 SINT32 ret=snprintf((
char*)buff,bufflen,
"Unix address: %s",tmppath);
This is an abstract class for representing a socket address used in CASocket, CADatagramSocket and CA...
This is a class for Unix Domain Protocol Sockat Addresses.
UINT8 * getPath() const
Retruns the path of this address.
CASocketAddrUnix()
Constructs an address with an empty path.
CASocketAddr * clone() const
Creates a new copy of this address.
virtual SINT32 toString(UINT8 *buff, UINT32 bufflen) const
Returns a human readable string describing this address.
SINT32 getType() const
Returns the type (family) of the socket this address is for (always AF_LOCAL)
const SOCKADDR * LPSOCKADDR() const
Makes a cast to SOCKADDR* .
SINT32 getSize() const
Resturns the size of the SOCKADDR struct used.
SINT32 setPath(const char *path)
Sets the path of this unix address.