psocksxx
1.0.0
|
Socket address class for local sockets. More...
#include <lsockaddr.h>
Public Member Functions | |
lsockaddr (const char *path) throw () | |
constructor More... | |
socklen_t | size () const throw () |
get POSIX socket address size More... | |
::sockaddr * | psockaddr () const throw () |
get a POSIX socket address structure More... | |
![]() | |
virtual | ~sockaddr () |
destructor | |
Additional Inherited Members | |
![]() | |
enum | address_t { af_unspec = AF_UNSPEC, af_local = AF_LOCAL, af_inet = AF_INET } |
Socket address class for local sockets.
This class holds the socket addressing structure for local (unix) socket communications.
psocksxx::lsockaddr::lsockaddr | ( | const char * | path | ) | |
throw | ( | ||||
) |
constructor
path | local socket address file path |
Create a local socket address instance with the given file path as the socket address.
|
virtual |
get a POSIX socket address structure
Helper function to get a pointer to the POSIX socket address structure relating to this socket address instance.
Implements psocksxx::sockaddr.
|
virtual |
get POSIX socket address size
Helper function to get the size of the related POSIX socket address.
Implements psocksxx::sockaddr.