21 #include <sys/socket.h> 22 #include <sys/ioctl.h> 23 #include <linux/sockios.h> 35 if (::ioctl(
fd(), SIOCINQ, &n) < 0)
61 prefix_ void senf::UNSocketProtocol::check_and_unlink()
67 ::unlink(una.
path().c_str());
ClientSocketHandle public header.
char const * errorString() const
#define SENF_THROW_SYSTEM_EXCEPTION(desc)
Generic SocketHandle with client interface.
Unix domain socket address.
virtual void terminate() const
Forcibly close socket.
int fd() const
Get file descriptor.
bool eof() const
Check for end-of-file condition.
UNSocketProtocol public header.
UNAddressing public header.
FileHandle fh() const
Get a FileHandle for this instance.
virtual void close()
Close socket.
unsigned available() const
Return (maximum) number of bytes available for reading without < blocking.
virtual void terminate() const
Forcibly close socket.
std::string path() const
Return path as string.
virtual void close()
Close socket.