Skip to content

Time tcp server (RFC 868)

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

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

`

XmlConfigurator.Configure();
_logger = LogManager.GetLogger(typeof(TestTcpServer));
_timeServer = new TimeTcpServer(LocalHost, TimeServerPort, _logger, true);
_timeServer.Start();

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

// _timeServer declaration
private ITcpServer _timeServer;

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

Clone this wiki locally