[Vortex] Sending binary data

Yourch, Chris chris at replicus.com
Thu Sep 6 03:55:23 CEST 2007

So, "under the covers" a stream of byte's are actually sent? i.e. the
const char * is cast to an unsigned char * and then sent?

-----Original Message-----
From: Jens Alfke [mailto:jens at mooseyard.com] 
Sent: Wednesday, September 05, 2007 4:52 PM
To: Yourch, Chris
Cc: vortex at lists.aspl.es
Subject: Re: [Vortex] Sending binary data

On 5 Sep '07, at 4:42 PM, Yourch, Chris wrote:

> The method vortex_channel_send_msg_and_wait()sends data as a "const  
> char
> *". How do I send binary data?  Shouldn't this method take the data as
> "const unsigne dchar *"?

If it takes arbitrary binary data, the type really should be "const  

> If not, how do I send a bunch of binary (values of 0-255) bytes?

Just cast your data pointer, whatever type it may be, to (const char*)  
to pass it to the function.


More information about the Vortex mailing list