Skip to content

Echo tcp server (RFC 862)

Ushakov Michael (Ушаков Михаил) edited this page Jul 19, 2017 · 1 revision

It is possible to easily (with couple of code lines) create a simple Echo server:

`

XmlConfigurator.Configure();
_logger = LogManager.GetLogger(typeof(TestTcpServer));
_echoServer = new EchoTcpServer(LocalHost, EchoServerPort, _logger, true);
_echoServer.Start();

// when server finished, we must stop it
_echoServer.Stop();

// _echoServer declaration
private ITcpServer _echoServer;

`

Full example listed in TestEchoTcpServer in project MossbauerLab.SimpleExtensions.Tests

Clone this wiki locally