Dear all,

currently, I am trying to talk to other applications via some communication protocol (more specifically, it is OpenSound Control, see http://www.cnmat.berkeley.edu/OpenSoundControl/). The syntax of this protocol requires that I send/receive data of formats such as 32- bit integer (big-endian) and 32-bit floats (big-endian). The communication itself happens via sockets.

Oz floats are internally 64 bits (according to CTM). Their print representation (Float.toString) is less, but not fixed in size (BTW: it does not use Oz syntax, the negation sign is - instead of ~). Oz integers can be of any size. I assume BitArray or BitString don't help me either, because I can not output them. Also, ByteString is intended for textual data.

Any idea how I can control the size of integers and floats send across a socket?

Thank you!

Best
Torsten

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
strasheela.sourceforge.net
www.torsten-anders.de




_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to