Project Type: 
Programming Language Library

(I didn't write this.) This is a very minimalistic OSC 1.0 library written completely in C++ and released under the zlib license. There is one header file for most of the implementation, one for UDP transport, and two supplementary files (a simple test and demo). It's robust with respect to malformed packets, doesn't throw exceptions, and doesn't rely on the outdated gethostbyname. It does not, however, take into account timestamp values or provide a cpu-scalable message dispatching, and it may not be suitable for use inside a realtime thread as it allocates memory when building or reading messages.

Note: You may have to make some changes to the UDP file to be able to use it with MinGW on Windows. Using line numbers from http://gruntthepeon.free.fr/oscpkt/html/udp_8hh_source.html (as of Dec. 2011), add "#define _WIN32_WINNT 0x501" before line 26 and comment out lines 243-249, 254, 306-308, 310, and the last three error checks in lines 250-251. The modified file is also attached (change extension to .hh).

Transport Type: 
Packet Parsing (Client)
Packet Construction (Server)
Bundle Support
Wildcard Matching Support
High Speed (> 100 hz packet rate)
Bundle Support: 
Reads Bundles
Creates Bundles
Type Support: 
i: int32
b: blob
s: string
f: float32
h: int64
d: double precision float
T: true
F: false
udp.txt13.46 KB
Syndicate content