eckit::net::NetService class

Base classes

class eckit::Thread

Derived classes

class eckit::HttpService
class eckit::JavaService
class eckit::RemoteCommander
class Telnet

Constructors, destructors, conversion operators

NetService(int port, bool visible = true, const SocketOptions& options = SocketOptions::server())
~NetService()

Public functions

auto hostname() const -> std::string
auto port() const -> int
void run() override
void stop()

Private functions

auto newUser(net::TCPSocket&) const -> NetUser* pure virtual
auto name() const -> std::string pure virtual
auto preferToRunAsProcess() const -> bool virtual
auto runAsProcess() const -> bool virtual
auto timeout() const -> long virtual

Function documentation

eckit::net::NetService::NetService(int port, bool visible = true, const SocketOptions& options = SocketOptions::server())

Parameters
port in TCP port to listen on
visible in Make the thread this service is running in visible on the Monitor (defaults to false)
options

std::string eckit::net::NetService::hostname() const

Returns hostname to which this server is answering

int eckit::net::NetService::port() const

Returns port to which this server is answering

void eckit::net::NetService::stop()