Shadow Stack  0.2
 All Classes Namespaces Files Functions Variables Typedefs Macros
quick_socket.hpp
Go to the documentation of this file.
1 
2 #ifndef __QUICK_SOCKET_HPP__
3 #define __QUICK_SOCKET_HPP__
4 
5 
6 /*********************************************************/
7 /* */
8 /* Functions */
9 /* */
10 /*********************************************************/
11 
12 
13 // Protect the global namespace
14 namespace QS {
15 
18  int create_server( const char *fname );
19 
23  int create_client( const char *const sock_name );
24 
27  int accept_client( const int sock );
28 
29 }; // namespace QS
30 
31 
32 #endif
int accept_client(const int sock)
Wait for a client to connect to sock Once the client connects, accept then return the file descriptor...
Definition: quick_socket.cpp:83
int create_server(const char *fname)
Create a unix socket at fname, and a server for it Returns the server file descriptor.
Definition: quick_socket.cpp:39
static int sock
Definition: dr_external_ss_events.cpp:14
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 descrip...
Definition: quick_socket.cpp:64