Hi all
this is very strange. I am using ZMQ and after I have finished with it I shut it down using close BUT when I start it up again there’s “END” in there???
using ZMQ
context = Context()
socket = Socket(context, PULL)
ZMQ.bind(socket, "tcp://*:5555")
while true
do some stuff looking at messages
if message == "END"
println("dying")
println(df_table)
ZMQ.close(socket)
ZMQ.close(context)
break
end
I “kill” it using this which I “thought” would flush the buffer/socket when I close the PULL
using ZMQ
context = Context()
stk_socket = Socket(context, PUSH)
ZMQ.connect(stk_socket, "tcp://localhost:5555")
ZMQ.send(stk_socket,"END")
ZMQ.close(stk_socket)
ZMQ.close(context)
Is there a FLUSH function in ZMQ that I can call in the PULL? to flush anything out of the socket?