Files
vanilla/pipe/def.h
T
itsmattkc 94d86f5bba implement communication with pipe
also adds support for local Unix domain socket mode
2025-02-09 12:26:58 -08:00

17 lines
552 B
C

#ifndef VANILLA_PIPE_DEF_H
#define VANILLA_PIPE_DEF_H
#define VANILLA_PIPE_CMD_PORT 51000
#define VANILLA_PIPE_CC_SYNC 0x56530000
#define VANILLA_PIPE_CC_CONNECT 0x56414249
#define VANILLA_PIPE_CC_BIND_ACK 0x56414245
#define VANILLA_PIPE_CC_SYNC_STATUS 0x53595300
#define VANILLA_PIPE_CC_SYNC_PING 0x5359504E
#define VANILLA_PIPE_CC_BUSY 0x56414255
#define VANILLA_PIPE_CC_UNBIND 0x5641554E
#define VANILLA_PIPE_SYNC_CODE(x) (VANILLA_PIPE_CC_SYNC | (x & 0xFFFF))
#define VANILLA_PIPE_LOCAL_SOCKET "/tmp/vanilla-pipe.%i"
#endif // VANILLA_PIPE_DEF_H