[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Socket functions from octave
From: |
Tom Holroyd (NIH/NIMH) [E] |
Subject: |
Re: Socket functions from octave |
Date: |
Wed, 03 May 2006 11:07:26 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) |
John Swensen wrote:
* Only allows the sending of uint8 arrays or strings (This could be
changed to detect the size and perform endian swapping to network byte
order)
* Only receives data into a uint8 RowVector
Wouldn't it be better to implement as low-level an interface as possible, and
then let the formatting of data be done by other libraries?
Ideally, it would be nice to have an interface that allowed arbitrary Octave
objects to be sent transparently. This could be written on top of a low-level
socket layer that took care of the packaging and so on. There are actually
several libraries/protocols that do similar things; libaxl packages content in
xml and transfers it, but that's meant for web services. We want something
similar but for things like HDF5 content.
So a lower level socket interface should allow reading and writing of bytes,
basically, and that's it. A higher level API could then use that to package
Octave objects and send them?
--
Tom Holroyd, Ph.D.
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
-- The Scarecrow