bcast/macros.h

52 lines
1.7 KiB
C

#ifndef MACROS_H
#define MACROS_H
#define START_MESSAGE " ______ _______ _______ _______ _______\n |_____] | |_____| |______ | \n |_____] |_____ | | ______| |\n\n"
/* strings, foo' */
#define QUIT_COMMAND "quit"
#define QUIT_MESSAGE "さよなら!"
#define QUIT_HELP "shuts down running sockets and quits the program"
#define SET_COMMAND "set"
#define SET_MESSAGE "variable: "
#define SET_HELP "sets a variable to a value"
#define SET_SYNTAX "/set variable value"
#define LIST_COMMAND "list"
#define LIST_HELP "lists all variables and their values\nuse /set to change a variable"
#define START_COMMAND "start"
#define START_HELP "starts either listen or send if specified, otherwise starts both"
#define START_SYNTAX "/start listen|send"
#define START_LISTEN_COMMAND "listen"
#define START_SEND_COMMAND "send"
#define STOP_COMMAND "stop"
#define STOP_HELP "stops either listen or send if specified, otherwise stops both"
#define STOP_SYNTAX "/stop {listen|send}"
#define STOP_LISTEN_COMMAND "listen"
#define STOP_SEND_COMMAND "send"
#define RESTART_COMMAND "restart"
#define RESTART_HELP "restarts listen and/or send if either are running"
#define RESTART_SYNTAX "/restart {listen|send}"
#define RESTART_LISTEN_COMMAND "listen"
#define RESTART_SEND_COMMAND "send"
#define HELP_COMMAND "help"
#define HELP_MESSAGE "type a message and hit return to send\npreface commands with '/'\navailable commands: help, start, stop, restart, set, list, quit"
#define HELP_HELP "the help command, obv."
#define HELP_SYNTAX "/help {command}"
#define UNKNOWN_MESSAGE "unknown command"
/* ints, foo*2 */
#define STDIN 0
#define DATAGRAM_SIZE 512
#define COMMAND_HASH_SIZE 64
#define CONFIG_HASH_SIZE 64
#endif