Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Libraries | TCP socket

MetaTrader Experts, Indicators, Scripts and Libraries

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.

9772

Best MetaTrader Indicators + Profitable Expert Advisors