1 #ifndef LIBSOCKET_UNIXSERVERSTREAM_H_DBD900942A364273A5E9C89F0096D9AF 2 #define LIBSOCKET_UNIXSERVERSTREAM_H_DBD900942A364273A5E9C89F0096D9AF 43 using std::unique_ptr;
57 void setup(
const char* path,
int flags = 0);
58 void setup(
const string& path,
int flags = 0);
61 unique_ptr<unix_stream_client>
accept2(
int flags = 0);
Contains libsocket elements.
Base class for all UNIX socket classes.
Provides an interface for working with UNIX STREAM sockets.
unix_stream_client * accept(int flags=0)
Accepts incoming connections on a UNIX domain stream server socket.
unique_ptr< unix_stream_client > accept2(int flags=0)
Accepts an incoming connection on a UNIX domain stream server socket and returns an owned pointer.
Socket class for UNIX-domain STREAM socket server.
unix_stream_server(void)
Void constructor.
void setup(const char *path, int flags=0)
Sets a server socket up.