From 6d196fd8683288fa5f29f6eddd28fb12a0a06c79 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Tue, 30 Aug 2005 20:54:05 +0000 Subject: changes by piotr majdak svn path=/trunk/externals/OSCx/; revision=3464 --- src/sendOSC.c | 42 +++++++++++++++++------------------------- 1 file changed, 17 insertions(+), 25 deletions(-) (limited to 'src/sendOSC.c') diff --git a/src/sendOSC.c b/src/sendOSC.c index 045c98c..701bfa0 100644 --- a/src/sendOSC.c +++ b/src/sendOSC.c @@ -218,7 +218,7 @@ void sendOSC_disconnect(t_sendOSC *x) } } -void sendOSC_senduntyped(t_sendOSC *x, t_symbol *s, int argc, t_atom *argv) +/*void sendOSC_senduntyped(t_sendOSC *x, t_symbol *s, int argc, t_atom *argv) { char* targv[MAXPDARG]; char tmparg[MAXPDSTRING]; @@ -247,7 +247,7 @@ void sendOSC_senduntyped(t_sendOSC *x, t_symbol *s, int argc, t_atom *argv) post("sendOSC: not connected"); // exit(3); } -} +}*/ ////////////////////////////////////////////////////////////////////// // this is the real and only sending routine now, for both typed and @@ -267,24 +267,22 @@ static void sendOSC_sendtyped(t_sendOSC *x, t_symbol *s, int argc, t_atom *argv) int numArgs = 0; messageName = ""; -#ifdef DEBUG - post ("sendOSC: messageName: %s", messageName); -#endif - + if(argc>MAX_ARGS) + { post ("sendOSC: too many arguments! (max: %d)", MAX_ARGS); return; } for (c=0;cx_oscbuf, messageName, numArgs, args)) { - post("sendOSC: usage error, write-msg failed: %s", OSC_errorMessage); - return; + post("sendOSC: usage error, write-msg failed: %s", OSC_errorMessage); + return; } if(!x->x_bundle) { -/* // post("sendOSC: accumulating bundle, not sending things ..."); */ -/* } else { */ - // post("sendOSC: yeah and OUT!"); - SendBuffer(x->x_htmsocket, x->x_oscbuf); - OSC_initBuffer(x->x_oscbuf, SC_BUFFER_SIZE, bufferForOSCbuf); + SendBuffer(x->x_htmsocket, x->x_oscbuf); + OSC_initBuffer(x->x_oscbuf, SC_BUFFER_SIZE, bufferForOSCbuf); } - //CommandLineMode(argc, targv, x->x_htmsocket); - //useTypeTags = 0; } else { post("sendOSC: not connected"); - // exit(3); } } @@ -351,7 +343,7 @@ static void sendOSC_free(t_sendOSC *x) } #ifdef WIN32 - OSC_API void sendOSC_setup(void) { + void sendOSC_setup(void) { #else void sendOSC_setup(void) { #endif -- cgit v1.2.1