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

 
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!

 

Hi.

Is there a way to do the inverse? Send message from client to server ?

 

Thank you very much for the article. I successfully used it to implement WebSocket over and receive data from the service.

Question, is it possible to implement TLS encryption? Preferably without issuing additional certificates to the client. Thank you!

 
Illia Kharytonov:

Question, is there any way to implement TLS encryption? Preferably without issuing additional certificates to the client. Thank you!

tls is a protocol, a software implementation, so whatever goes over the socket is up to you.

If you are interested in RSA or AES encryption of what you transmit - this is another issue and has nothing to do with tls.

 
Illia Kharytonov:

Thank you very much for the article. I successfully used it to implement WebSocket over and receive data from the service.

Question, is it possible to implement TLS encryption? Preferably without issuing additional certificates to the client. Thanks!


Illia, could you share an example of WebSocket implementation?

 
if(bind(server,ref.ref,sizeof(addrin))==SOCKET_ERROR)

In the above line, I get an error.

stack damaged, check DLL function call in 'tickserver.mq5' (<row><col>)

What do you advise?

 
check the bitness of the terminal and which structures you are using for them
 
o_o:
check the bitness of the terminal and which structures you are using for them

32 bit.

 
_SERG_:

32-bit.

I don't need to know that. )))
This is an actionable information for you.

 
o_o:

I don't need to know that. ))
This is an action item for you.


Thank you. It's up and running.