Hello everyone,
I really just want to transcript this part of python code in C++ :
------------------------------------------------------------------------------------------------------------------------------
data, addr = sock.recvfrom(1024) #buffer size is 1024 bytes
print "received message: ", "%1.4f" %unpack_from ('!f', data, 0), "%1.4f"
%unpack_from ('!f', data, 4)
------------------------------------------------------------------------------------------------------------------------------
I can't seem to find the correct way to unpack the buffer. I suppose it has
something to do with the google::protobuf::Any type but that's it.
To be more precise, I receive informations from an IMU through udp. So I
have a buffer of char[1024] which should contain floats.
Thanks a lot.
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.