Update of /cvsroot/pure-data/externals/maxlib/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15190
Modified Files: netserver.c Log Message: added syslog-style debug message levels
Index: netserver.c =================================================================== RCS file: /cvsroot/pure-data/externals/maxlib/src/netserver.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** netserver.c 20 Mar 2004 05:56:30 -0000 1.10 --- netserver.c 20 Mar 2004 22:45:16 -0000 1.11 *************** *** 57,62 **** #define INBUFSIZE 4096 /* size of receiving data buffer */
! static char *version = "netserver v0.2 :: bidirectional communication for Pd\n" ! " written by Olaf Matthes olaf.matthes@gmx.de";
/* ----------------------------- netserver ------------------------- */ --- 57,74 ---- #define INBUFSIZE 4096 /* size of receiving data buffer */
! /* message levels from syslog.h */ [...1099 lines suppressed...] ! class_addmethod(netserver_class, (t_method)netserver_info, gensym("info"), 0); ! class_addmethod(netserver_class, (t_method)netserver_info, gensym("verbose"), 0); ! class_addmethod(netserver_class, (t_method)netserver_debug, gensym("debug"), 0); ! ! class_sethelpsymbol(netserver_class, gensym("help-netserver.pd")); ! post(version); } #else void maxlib_netserver_setup(void) { ! netserver_class = class_new(gensym("maxlib_netserver"),(t_newmethod)netserver_new, (t_method)netserver_free, ! sizeof(t_netserver), 0, A_DEFFLOAT, 0); ! class_addcreator((t_newmethod)netserver_new, gensym("netserver"), A_DEFFLOAT, 0); ! class_addmethod(netserver_class, (t_method)netserver_print, gensym("print"), 0); ! class_addmethod(netserver_class, (t_method)netserver_send, gensym("send"), A_GIMME, 0); ! class_addmethod(netserver_class, (t_method)netserver_client_send, gensym("client"), A_GIMME, 0); ! class_addmethod(netserver_class, (t_method)netserver_broadcast, gensym("broadcast"), A_GIMME, 0); ! class_sethelpsymbol(netserver_class, gensym("maxlib/help-netserver.pd")); } #endif