New article Working with sockets in MQL, or How to become a signal provider has been published:
Sockets… What in our IT world could possibly exist without them? Dating back to 1982, and hardly changed up to the present time, they smoothly work for us every second. This is the foundation of network, the nerve endings of the Matrix we all live in.
This article describes the principle of creating asynchronous TCP and UDP sockets. It provides several practical examples of interaction between the server and clients.
Hi, This code works on MQL4 ?
I'm trying to port it to mql4, and when the DLL bind() function is called at MQL StartServer function, gives me the message below:
2017.09.13 18:06:30.181 Server AUDCAD,H1: try bind...0.0.0.0:8081
2017.09.13 18:06:30.181 Access violation read to 0x00000012 in 'Ws2_32.dll'
source was compiled for x64
you need change all pointer to 32 bit
f.e. use SOCKET32 instead SOCKET64 etc
Hi, works fine on MT4.
Tx mate. Incredible code!
Hello, Trying to change this to MQL4 but running into issues due to Trade.mqh requirement on signalclient. How did you go about it?
If you could, please share your MT4 version as well, it will help newbies like me out.