From 35e89ad3034e7924ce39a0a5c0dffc6d1920bbea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 24 Mar 2010 17:20:21 +0000 Subject: automatic calling svn path=/trunk/externals/iem/iemnet/; revision=13259 --- tcpclient.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tcpclient.c') diff --git a/tcpclient.c b/tcpclient.c index 42fe2e0..23019d0 100644 --- a/tcpclient.c +++ b/tcpclient.c @@ -247,6 +247,8 @@ static void tcpclient_free(t_tcpclient *x) IEMNET_EXTERN void tcpclient_setup(void) { + static int again=0; if(again)return; again=1; + tcpclient_class = class_new(gensym(objName), (t_newmethod)tcpclient_new, (t_method)tcpclient_free, sizeof(t_tcpclient), 0, A_DEFFLOAT, 0); @@ -261,4 +263,10 @@ IEMNET_EXTERN void tcpclient_setup(void) post(" based on mrpeach/net, based on maxlib"); } + +IEMNET_INITIALIZER(tcpclient_setup); + + + + /* end of tcpclient.c */ -- cgit v1.2.1