[Vortex] Sending binary data

Jens Alfke jens at mooseyard.com
Thu Sep 6 01:51:56 CEST 2007


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  
void*".

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

--Jens



More information about the Vortex mailing list