Message Boards Message Boards

Set ZeroMQ subscribe channel in Mathematica?

Posted 7 years ago

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.

POSTED BY: hui liu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract