1#ifndef NET_UnixSocket_h__
2#define NET_UnixSocket_h__
22 void connect( std::string_view foreignPath);
29 void bind( std::string_view localPath);
57 static void fillAddress( std::string_view path, sockaddr_un& addr);
60 static std::string
extractPath(
const sockaddr_un& addr, socklen_t
len);
SimpleSocket(int sockfd)
enables return of an accepted socket
void connect(std::string_view foreignPath)
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)
std::string getForeignPath() const
UnixSocket(int type, int protocol)
allows a subclass to create new socket
void bind(std::string_view localPath)
std::string getLocalPath() const