chunks have shorts

git-svn-id: svn://elaine/murooma/trunk@63 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-03 20:58:56 +00:00
parent 565f432df4
commit 614b7c941e
2 changed files with 7 additions and 6 deletions

View file

@ -56,10 +56,10 @@ int main () {
// else if (diff_ms(now, ts) > 1000)
// ts = now;
chunk->tv_sec = 1234;//(int16_t)now.tv_sec;
chunk->tv_usec = 0;//now.tv_usec;
zmq::message_t message(8*2*WIRE_CHUNK_SIZE);//sizeof(Chunk));
memcpy(message.data(), chunk, 8+2*WIRE_CHUNK_SIZE);//sizeof(Chunk));
chunk->tv_sec = now.tv_sec;
chunk->tv_usec = now.tv_usec;
zmq::message_t message(sizeof(Chunk));
memcpy(message.data(), chunk, sizeof(Chunk));
// snprintf ((char *) message.data(), size, "%05d %d", zipcode, c);
// message.data()[0] = c;
publisher.send(message);