In[]:=
Close/@Sockets[];s=SocketOpen["127.0.0.10:5010",{"ZMQ","Push"}]c=SocketConnect["127.0.0.10:5010",{"ZMQ","Pull"}]SocketListen[c,HandlerFunctionsKeys{"Data","MultipartComplete","DataBytes","DataByteArray"},HandlerFunctions<|"DataReceived"Function[Print[#Data];Print[#DataBytes];Print[#DataByteArray];Print[ByteCount[#Data]];Print[#MultipartComplete];]|>]
Out[]=
SocketObject
Out[]=
SocketObject
Out[]=
SocketListener[ZMQ-36f2a64f-b4ab-48c1-bc21-84b552fbc489]
In[]:=
(*Examplesetforsize*)n=RandomReal[{1,5},360];
In[]:=
(*writethesettothesocket*)WriteString[s,n]
