2 #include <sys/socket.h> 46 #define SOCK_NONBLOCK O_NONBLOCK 66 setup(bindpath, socket_flags);
78 setup(bindpath.c_str(), socket_flags);
92 "unix_dgram_server::setup: Already set up!",
100 "unix_dgram_server::setup: Could not create server!");
102 _path.assign(bindpath);
104 is_nonblocking = socket_flags & SOCK_NONBLOCK;
116 setup(bindpath.c_str(), socket_flags);
Contains libsocket elements.
This class is instantiated and thrown when an error occurs. If there's an error somewhere in libsocke...
bool bound
Shows if the socket is already bound (for setup routines)
int sfd
sfd is the sockets API file descriptor
int create_unix_server_socket(const char *path, int socktype, int flags)
Create a passive UNIX socket.
unix_dgram_server(void)
Void constructor.
void setup(const char *bindpath, int socket_flags=0)
Binds a socket.