1 2 3 4 5 6 7 8 9 10 11 12
#include <sys/socket.h> #include <sys/un.h> #define SOCKPATH "/tmp/sympathy" typedef struct { int type; int len; uint8_t data[0]; } Sympathy_msg;