WinSock – library MetaTrader 4

WinSock - library for MetaTrader 4
WinSock is a¬†windows network interface that¬†descented¬†from¬†TCP/IP¬†Berkley¬†Sockets, and is the default network interface for TCP/IP. The sockets lie on the session layer (OSI/5).¬†The¬†attached code¬†is¬†an¬†operational¬†example¬†of¬†windows¬†sockets¬†and¬†the¬†included¬†library,¬†although¬†easily¬†expandable,¬†is¬†in¬†a¬†basic¬†form¬†and not a full winsock implemenation.¬†The¬†advantage¬†of¬†the¬†library and code¬†presented¬†is¬†that¬†it’s¬†written¬†completely¬†in¬†mql4¬†without¬†any¬†use¬†of¬†external¬†dll¬†helper. The WinSock.mqh is the library and should be placed in your include folder The wsockserv.mq4 is a winsock¬†echo server¬†blocking¬†mode example that should be put in