|
void | open (const std::string &name) |
| Creates new UNIX domain socket. More...
|
|
| UnixSocket () |
| The default constructor.
|
|
virtual | ~UnixSocket () |
| The destructor.
|
|
void | close () |
| Closes connection. More...
|
|
int | getHandler () const |
| Returns system connection handler. More...
|
|
bool | opened () const |
| Returns non-zero if connection was opened. More...
|
|
ssize_t | read (void *buf, size_t s) const |
| Reads data from the socket. More...
|
|
ssize_t | read (std::string &s) const |
| Reads data and saves it in string object. More...
|
|
| Socket () |
| The default constructor.
|
|
| Socket (int fd) |
| The constructor with file descriptor specification. More...
|
|
ssize_t | write (const void *buf, size_t s) const |
| Writes data to socket. More...
|
|
virtual | ~Socket () |
| The destructor. More...
|
|
This class is the interface to create server UNIX domain socket. No client behavior is implemented. Only file name of socket is required to prepare object of this class.