XML Feeds

.

[java-dev] Re: Arbitrary binary data with TcpSender?

Nick Rothwell nick at cassiel.com
Thu Jan 10 03:11:24 MST 2008


> In the mean time I've been looking at java.net.Socket, but that's  
> also meant importing add'l packages to catch exceptions and other  
> fun stuff. It looks like I need java.net.*, java.lang.*, and  
> java.io.* as well as the Cycling74 packages.

java.lang.* you get for free; but anyway, if you're using Eclipse, at  
least, management of import statements is one key shortcut away. Yes,  
you have to deal with exceptions (or just let the MXJ instance's  
entry points propagate the exceptions); it's just one of the ways in  
which Java sometimes requires a bit (or a lot) of boilerplate.

> I was thinking (probably incorrectly) that if I were to do  
> something like TcpSender.send(String s, Atom[] a), the contents of  
> the String would have to go into the Max symbol table

I would guess, by analogy with the C/C++ API, that Atom.newAtom 
(String) would hash the string into a symbol. But otherwise, if  
you're just in the Java world, Max won't see it: just you, me and the  
Sheriff will know about it.

	-- N.


   nick rothwell -- composition, systems, performance -- http:// 
www.cassiel.com





More information about the java-dev mailing list