Shadow Stack  0.2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Functions
QS Namespace Reference

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...
 

Function Documentation

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.