Re: Send a RealArray over a Socket

John Reppy <[email protected]> Wed, 15 Aug 2007 10:42:30 -0500
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
The short answer is that there is no really efficient way to send a
RealArray over a socket.  You will have to convert it to bytes.  Note
that since different machines have different byteorders, sending
reals (or ints, etc) may involve byteswapping.

	- John

On Aug 15, 2007, at 1:45 AM, vaishali chattopadhyay wrote:

> 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?
> If so I hope that there is a better way to do it than
> iterating through every element of the RealArray since
> the RealArray is a few MB in size?
>
> -Thanks
>
>
>
> ______________________________________________________________________ 
> ______________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's  
> updated for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
>
> ---------------------------------------------------------------------- 
> ---
> 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/
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>


-------------------------------------------------------------------------
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/