activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Pernas <os...@pernas.es>
Subject ACTIVEMQ-CPP ReadBytes of streammessage
Date Sun, 24 Oct 2010 23:50:48 GMT
Hi all,

Im using streamMessage to send data. I dont know why, but if I send
something by this way:

streamMessage->writeString(key);
 streamMessage->writeBytes(bytesParameter->getValue());

When i catch the message on reception I need to do two readBytes to catch
the bytes sent, like this:

std::string key=streamMessage->readString();
int sizeBytesData=packetDesc.at(++it);
 std::vector<unsigned char> data(sizeBytesData);
streamMessage->readBytes(data);
 streamMessage->readBytes(data);


Any clue?

-- 
Óscar Pernas Plaza.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message