Functions | |
int | create_server (const char *fname) |
Create a unix socket at fname, and a server for it Returns the server file descriptor. More... | |
int | create_client (const char *const sock_name) |
Create a client for a unix socket Joins the unix socked located at sock_name Returns the file descriptor for the client. More... | |
int | accept_client (const int sock) |
Wait for a client to connect to sock Once the client connects, accept then return the file descriptor. More... | |
int QS::accept_client | ( | const int | sock | ) |
Wait for a client to connect to sock Once the client connects, accept then return the file descriptor.
int QS::create_client | ( | const char *const | sock_name | ) |
Create a client for a unix socket Joins the unix socked located at sock_name Returns the file descriptor for the client.
int QS::create_server | ( | const char * | fname | ) |
Create a unix socket at fname, and a server for it Returns the server file descriptor.