dingmaotu / mql-zmq

ZMQ binding for the MQL language (both 32bit MT4 and 64bit MT5)
Apache License 2.0
553 stars 301 forks source link

SOCKOPT #41

Closed HumanBean17 closed 4 years ago

HumanBean17 commented 5 years ago

I need to set receive time, but I can't get how to properly use SOCKOPT(int, ReceiveTimeout, ZMQ_RCVTIMEO). It's even doesnt compile

dingmaotu commented 5 years ago

Can you provide more info on this? What is your MetaTrader version?

You use the options like this: socket.setReceiveTimeout(5). I don't remember it's seconds or milliseconds, but you can always lookup ZMQ_RCVTIMEO option in the ZMQ official documentation.