48 #define SOCK_NONBLOCK O_NONBLOCK 61 "unix_dgram_client::unix_dgram_client: Socket " 62 "has already been set up!",
69 "unix_dgram_client::unix_dgram_client: Could " 70 "not create unix dgram client socket!");
72 if (path)
_path.assign(path);
74 is_nonblocking = flags & SOCK_NONBLOCK;
107 setup(path.c_str(), flags);
126 "unix_dgram_client::connect() - Socket has already been closed!",
131 "unix_dgram_client::connect: Could not connect dgram socket!");
162 "unix_dgram_client::deconnect: Could not disconnect dgram socket!");
Contains libsocket elements.
void setup(const char *path, int flags=0)
Set a UNIX domain datagram socket up.
int create_unix_dgram_socket(const char *bind_path, int flags)
Create a UNIX DGRAM socket.
This class is instantiated and thrown when an error occurs. If there's an error somewhere in libsocke...
int connect_unix_dgram_socket(int sfd, const char *path)
Connect a datagram socket.
void connect(const char *path)
Connect a UNIX datagram socket.
int sfd
sfd is the sockets API file descriptor
void deconnect(void)
Disconnect a UNIX datagram socket.
unix_dgram_client(int flags=0)
Constructor with only socket() flags.