abstract static class API { string someMethod(string name); } static class Implementation : API { static Implementation startSession(TCPConnection conn) { return new Implementation(); } override string someMethod(string name) { return "Hello " ~ name ~ "!"; } } auto server = serveTCP!(Implementation, API)(8030); server.stop();
Create a new TCP based API server.