#pragma once #include #include "iserver.hpp" template class ExistingPortServer : public IServer { public: ExistingPortServer(Handle port_h, unsigned int max_s, bool s_d = false) : IServer(NULL, max_s, s_d) { this->port_handle = port_h; } ISession *get_new_session(Handle session_h) override { return new ServiceSession(this, session_h, 0); } };