Message Boards Message Boards


Set ZeroMQ subscribe channel in Mathematica?

Posted 1 year ago
0 Replies
0 Total Likes

Mathematica 11.2 can do ZMQ socket programming now! But I cannot find out how to set subscribe channel from searching the doc. When using c language there is a function zsocket_set_subscribe to set the subscribe channel, it seems lacking corresponding function in Mathematica Socket API .

(* To create socket *)

client = SocketConnect[{"Pub IP", Pub Port}, "ZMQ_SUB"]

(* Then how to set channel to receive message? *)

I also asked in the stackexchange and will sync if there is an answer.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract