MetaTrader 4 MT4 Libraries TCP socket – library MetaTrader 4

TCP socket – library MetaTrader 4

Description:

I’m using this code for a script i have so i deleted the protocol mqh library, but it should still work. I made ryaz’s winsock server example into some utility functions.

Report any bugs or improvements back please! Hope you find tcp sockets as simple as they should be = open connection, accept connection, receive connection, close connection.

Thanks 🙂

note that you can change the receive buffer size, the max amount of characters that we can receive, in the sockets.mqh file. Currently it is at 200 characters.

📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks