28 sockaddr_un clientAddr;
29 socklen_t addr_len =
sizeof(clientAddr);
43 poll.events = POLLIN | POLLPRI | POLLRDHUP;
47 if( ret == 0)
return 0;
50 if( poll.revents & POLLRDHUP)
53 if( poll.revents & POLLIN || poll.revents & POLLPRI)
#define TEMP_FAILURE_RETRY(expression)
Signals a problem with the execution of a socket call.
void sendTo(const void *buffer, size_t len, std::string_view foreignPath)
int timedReceiveFrom(void *buffer, size_t len, std::string &sourcePath, int timeout)
int receiveFrom(void *buffer, size_t len, std::string &sourcePath)
static std::string extractPath(const sockaddr_un &addr, socklen_t len)
extracts a path string from the socket address structure
static void fillAddress(std::string_view path, sockaddr_un &addr)
UnixSocket(int type, int protocol)
allows a subclass to create new socket