Both of those work perfectly. I can see myself using both for this project. 
Thanks a bunch!

On Wednesday, 27 April 2016 12:45:08 UTC-5, Shashi Gowda wrote:
>
> Oh yes, I was just going to say that's a better way.
>
> On Wed, Apr 27, 2016 at 11:12 PM, Stefan Karpinski <[email protected] 
> <javascript:>> wrote:
>
>> read(io, UInt32). Depending on the endianness of the data stream, you may 
>> or may not need to call ntoh on that.
>>
>> On Wed, Apr 27, 2016 at 1:35 PM, Achu <[email protected] <javascript:>> 
>> wrote:
>>
>>> Hi
>>>
>>> I'm trying to read a data stream off a server for our motion capture 
>>> system. The protocol 
>>> <https://qualisys.github.io/Real-Time-Protocol-Documentation/>says that 
>>> the first four bytes represent the size of the whole packet and I can read 
>>> that using readbytes(). To convert four UInt8s into one UInt32, I'm 
>>> using  
>>> s=bytes2hex(a) #where a is a Vector UInt8, 4
>>> parse(UInt32,"0x"*s)
>>>
>>> Is there a better way to do this?
>>>
>>> Thanks!
>>> Achu
>>>
>>
>>
>

Reply via email to