/************************************************************************ Realms of Aurealis James Rhone aka Vall of RoA rclient.h Header file for RoAClient. Two user defines here for mod, s3m and midi players. ******** Heavily modified and expanded ******** *** BE AWARE OF ALL RIGHTS AND RESERVATIONS *** ******** Heavily modified and expanded ******** All rights reserved henceforth. Please note that no guarantees are associated with any code from Realms of Aurealis. All code which has been released to the general public has been done so with an 'as is' pretense. RoA is based on both Diku and CircleMUD and ALL licenses from both *MUST* be adhered to as well as the RoA license. *** Read, Learn, Understand, Improve *** *************************************************************************/ /*********************************************************** ONLY CHANGE ITEMS BELOW ***********************************************************/ /* mod/s3m player */ #define MODPLAYER "/usr/bin/tracker" /* midi player */ #define MIDIPLAYER "/usr/bin/playmidi" /* midi player */ #define AUPLAYER "/usr/bin/play" /* midi player */ #define WAVPLAYER "/usr/bin/sox" /*********************************************************** ONLY CHANGE ITEMS ABOVE DO NOT CHANGE ANYTHING BELOW (unless you know what yer doin) ***********************************************************/ #define MAX_HISTORY 30 #define RMIN(a, b) ((a<b)?a:b) /* RoAClient internal function protos */ int is_number(char *str); int init_socket(int port); void nonblock(int s); void block(int s); int get_roa_socket(char *ipname, int port); void csay(char *txt); int doio(int sok); void audi(void); void client_exit(void); int play_sound(char *fname); /* signal handlers */ int reaper(); int goodnight();