Hi folks,
I usually develop pretty extensively for Arduino microcontrollers, Python tools for Raspberry Pi and more recently Openframeworks visual processing tools.
To marry my passion for vintage computers and the other things I build, I've decided to develop a small (at first) application for vintage 68k Macs (targeting my system 7.1 Color Classics at first) to send OSC messages over networks. I'd like to get initial examples running, and of course then put the sourcecode up on github for people to remix their own OSC tools for classic macs.
For those uninitiated, OSC is a messaging protocol (Open Sound Control) that has been rising for quite some time as a replacement for classic MIDI. It allows all sorts of messaging over network ports (UDP packets) in all sorts of data types. For media artists like myself, OSC has become everything, as the glue that bonds together a wide range of different technologies and tools as well as easy method of interaction - it's on everything!
Initially I'd like to just make a simple test where I can send the output of a basic slider as integers via OSC to a set IP address, and develop it from there. I've been using Wolfgang Thaller's wonderful Retr68 build toolchain on my Linux development machine to build basic apps, and have the basics happening right now (simple window, button to send, button to quit) based on exampled provided with the tool.
I thought I could then step up to integrating simple sending of UDP packets, and then layer on an OSC message packing implementation to send through the same mechanism, but I'm stumped at level one...
I've been sifting through various developer manuals for MacTCP (using MacTCP in System 7.1) and although I have the libraries and I've been reading extensively, I can't seem to find any clear-cut examples on how to just send a byte as a UDP packet. It appears as though the developer manuals aren't keen on providing examples to work from.
I'm using C to program this application, and as mentioned above, utilising the Retro68 build toolchain to compile.
Does anybody have any examples of how to setup a port to send to, write a packet, and close the port? Anything at all would be helpful!
Many thanks
Jesse
I usually develop pretty extensively for Arduino microcontrollers, Python tools for Raspberry Pi and more recently Openframeworks visual processing tools.
To marry my passion for vintage computers and the other things I build, I've decided to develop a small (at first) application for vintage 68k Macs (targeting my system 7.1 Color Classics at first) to send OSC messages over networks. I'd like to get initial examples running, and of course then put the sourcecode up on github for people to remix their own OSC tools for classic macs.
For those uninitiated, OSC is a messaging protocol (Open Sound Control) that has been rising for quite some time as a replacement for classic MIDI. It allows all sorts of messaging over network ports (UDP packets) in all sorts of data types. For media artists like myself, OSC has become everything, as the glue that bonds together a wide range of different technologies and tools as well as easy method of interaction - it's on everything!
Initially I'd like to just make a simple test where I can send the output of a basic slider as integers via OSC to a set IP address, and develop it from there. I've been using Wolfgang Thaller's wonderful Retr68 build toolchain on my Linux development machine to build basic apps, and have the basics happening right now (simple window, button to send, button to quit) based on exampled provided with the tool.
I thought I could then step up to integrating simple sending of UDP packets, and then layer on an OSC message packing implementation to send through the same mechanism, but I'm stumped at level one...
I've been sifting through various developer manuals for MacTCP (using MacTCP in System 7.1) and although I have the libraries and I've been reading extensively, I can't seem to find any clear-cut examples on how to just send a byte as a UDP packet. It appears as though the developer manuals aren't keen on providing examples to work from.
I'm using C to program this application, and as mentioned above, utilising the Retro68 build toolchain to compile.
Does anybody have any examples of how to setup a port to send to, write a packet, and close the port? Anything at all would be helpful!
Many thanks
Jesse
Last edited by a moderator:

