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

 
Sergey Lebedev:

you need to add two things in your classes

1) If the client rarely sends data to the server (less than once an hour), then you need to ping the channel. for example, from the client to the server once every few minutes, so that the activity of the connection is maintained in the OS.

2) in case of sending / receiving error do CloseClean() so that the socket goes to INVALID_SOCKET and you reconnect.
 
Am I right to understand that by pinging a channel you mean performing the select function for the socket you plan to use?
 
Sergey Lebedev:
Am I right to understand that by pinging a channel you mean performing the select function for the socket you plan to use?
By pinging I mean sending at least one byte from the client to the server
 
MetaQuotes Software Corp.:

New article Manipulating Sockets in MQL, or How to Become a Signal Provider has been posted:

Author: o_O



Can you please tell me how to fix this error?

The code is as follows:


 

请教下,怎么修复这个错误?


代码如下:


 
285858315:

请教下,怎么修复这个错误?

代码如下:


use https://c.mql5.com/3/125/MQL5.zip


 
Do we need to replace the files in the article with this archive?
Files:
MQL5.zip  26 kb
 

can be substituted.

 
Thank you so much!
 
Renat Fatkhullin :

MQL5 will soon have raw client (without servers) network functions, including UDP.

Control by allowed lists of IP addresses and URLs, as it works now for WebRequest.

I don't think it's available yet, if I missed something?

Is this still planned?


I don't think it's already available unless I missed something ?

Is it still planned ?