XML Feeds

.

[java-dev] Re: Help! Need to format list for udp ASAP!

Scott Fitzgerald droolcup at gmail.com
Fri Feb 15 15:03:35 MST 2008


There's also this thread from awhile back

http://www.cycling74.com/forums/index.php?t=msg&goto=70613&rid=0&srch=sending+raw+bytes+with+net.udp.send#msg_70681

I have the code i did there somewhere, but not easily accessible.

~s

On Fri, Feb 15, 2008 at 10:34 PM, Seejay James <cjlacke at ilstu.edu> wrote:
>
>  unfortunately it needs to be all in one list, as the hardware is expecting packets of all the DMX channel data. so a stream wouldn't work.
>
>  Am looking into aka.datagram, which is perfect, though it's for Mac and we happen to be running on the Dark Side of the OS. will keep poking around, thanks!
>
>  Was kind of hoping there was an easy change one could make at the mxj.udp.send level, here:
>
>         public void inlet(int i) {
>                 us.send(i);
>         }
>         public void inlet(float f) {
>                 us.send(f);
>         }
>         public void list(Atom[] a) {
>                 us.send(a);
>         }
>         public void anything(String s, Atom[] a) {
>                 us.send(s,a);
>         }
>
>  Is there a change one could make to either of those last two function calls that would format the list as ints? All will be 0-255 values. I'm assuming the call being used is the Atom[] one since I'm sending a list, not a message / symbol.
>
>  Thanks!
>
>
>
>  --CJ
>  _______________________________________________
>  java-dev mailing list
>  java-dev at cycling74.com
>  http://www.cycling74.com/mailman/listinfo/java-dev
>


More information about the java-dev mailing list