Re: Send a RealArray over a Socket
"Gergely Buday" <[email protected]> Thu, 16 Aug 2007 09:28:35 +0200
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
> I am trying to send a RealArray over a socket. > However, I noticed that the sendArray function works > only with Word8Arrays. What is the best way to send a > large RealArray efficiently over a socket? > > Do I have to convert the RealArray into a Word8Array? Dear Vaishali, as John wrote you have to have a Word8Array to send it over a socket. But an option would be to write a wrapper structure around Word8Array that implements a part of RealArray's signature. It's not clear what do you use to compute the RealArray but in an optimist's view it's enough to implement sub, update and tabulate. And a simple function that exports the underlying Word8Array that you will use only to send it over a socket. What do you think of this? - Gergely ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/