Added state dump, fixed numerous RPC related bugs

This commit is contained in:
Joseph Henry 2015-10-29 17:57:59 -07:00
commit 96eb0ce492
10 changed files with 256 additions and 102 deletions

View file

@ -31,7 +31,7 @@
#include <sys/socket.h>
#define BUF_SZ 32
#define BUF_SZ 128
#define ERR_OK 0
/* Userland RPC codes */
@ -54,6 +54,7 @@
#define RPC_MAP_REQ 21 // A call to determine whether an fd is mapped to the service
#define RPC_RETVAL 22 // not RPC per se, but something we should codify
#define RPC_KILL_INTERCEPT 23 // Tells the service we need to shut down all connections
#define RPC_I_AM 24 // Tells the service the PID for the current client
/* Connection statuses */
#define UNSTARTED 0