aboutsummaryrefslogtreecommitdiff
path: root/osc/packingOSC.h
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2010-12-16 05:35:47 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2010-12-16 05:35:47 +0000
commitec9960cb49988a010b76b537f7fd4f7391a208a5 (patch)
tree03529f6288554a3f93c8fac67b47876cf54a3ce6 /osc/packingOSC.h
parent4de9340c311527de508fcbab74e32dd55fe73273 (diff)
Fixed problems when bundle depth is exceeded. Placed global defines in packingOSC.h. Thanks to zmoelnig for pointing this out in tracker id 3136648.
svn path=/trunk/externals/mrpeach/; revision=14663
Diffstat (limited to 'osc/packingOSC.h')
-rw-r--r--osc/packingOSC.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/osc/packingOSC.h b/osc/packingOSC.h
new file mode 100644
index 0000000..49e9e1e
--- /dev/null
+++ b/osc/packingOSC.h
@@ -0,0 +1,42 @@
+/* packingOSC.h */
+#ifndef _PACKINGOSC
+#include "m_pd.h"
+
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
+#ifdef _WIN32
+ #include <winsock2.h>
+ #include <sys/timeb.h>
+#else
+ #include <sys/types.h>
+ #include <netinet/in.h>
+ #include <ctype.h>
+ #include <sys/time.h>
+#endif /* _WIN32 */
+
+/* Declarations */
+#ifdef WIN32
+ typedef unsigned __int64 osc_time_t;
+#else
+ typedef unsigned long long osc_time_t;
+#endif
+
+#define MAX_MESG 65536 /* same as MAX_UDP_PACKET */
+#define MAX_BUNDLE_NESTING 32 /* maximum bundle depth */
+/* You may have to redefine this typedef if ints on your system
+ aren't 4 bytes. */
+typedef unsigned int uint4;
+typedef struct
+{
+ uint4 seconds;
+ uint4 fraction;
+} OSCTimeTag;
+
+typedef union
+{
+ int i;
+ float f;
+} intfloat32;
+
+#endif // _PACKINGOSC \ No newline at end of file