diff options
author | Thomas White <taw@physics.org> | 2021-04-15 15:30:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-04-15 16:43:40 +0200 |
commit | afcb7b568947c20fb3477a178be5aefe3203b603 (patch) | |
tree | 25d3d8a475bd4353083ce00f893e766525e1e625 /src/process_image.h | |
parent | 0dcd6c7e2fbfe78e4d2f26e01de0d4ea032d8fd6 (diff) |
Separate ZMQ from MessagePack, switch to pub/sub socket
Indexamajig uses only ZMQ, to receive streaming data, while libcrystfel
uses only msgpack to implement another type of image format.
The two of these are eventually tied together in process_image, which
does this: if ( have_zmq_data ) interpret_zmq_data_as_msgpack;
- however, they would be easy to split up if we wanted to do something
else (CBF data over ZMQ, anyone?).
This commit also switches the ZMQ connector to use a pub/sub socket
instead of a request/reply one. This matches changes in OnDA.
At the moment, the MessagePack image reader simply dumps the object to
disk.
Diffstat (limited to 'src/process_image.h')
-rw-r--r-- | src/process_image.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/process_image.h b/src/process_image.h index e8be0c29..ec7e22e2 100644 --- a/src/process_image.h +++ b/src/process_image.h @@ -119,11 +119,8 @@ struct pattern_args /* "Input" */ char *filename; char *event; -#ifdef HAVE_MSGPACK - msgpack_object *msgpack_obj; -#else - void *msgpack_obj; -#endif + void *zmq_data; + size_t zmq_data_size; }; |