Download MetaTrader 5

Discussion of article "Working with sockets in MQL, or How to become a signal provider"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
192546
MetaQuotes Software Corp.  

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.

Author: o_O

Wemerson Guimaraes
631
Wemerson Guimaraes  
MetaQuotes Software Corp.:

New article Working with sockets in MQL, or How to become a signal provider has been published:

Author: o_O


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'


o_o
Moderator
24926
o_o  
Wemerson Guimaraes:

Hi, This code works on MQL4 ?

source was compiled for x64

you need change all pointer to 32 bit

f.e. use SOCKET32   instead SOCKET64   etc


Wemerson Guimaraes
631
Wemerson Guimaraes  
o_o:

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!

Rohaya Binti Johari
13
Rohaya Binti Johari  
Wemerson Guimaraes:

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:



MTJFX
12
MTJFX  
Wemerson Guimaraes:

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.

Regards


To add comments, please log in or register