xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
Xale::Net::TcpServer Class Reference

#include <TcpServer.h>

Collaboration diagram for Xale::Net::TcpServer:
Collaboration graph

Public Member Functions

 TcpServer (Xale::Engine::QueryEngine &queryEngine, std::unique_ptr< Xale::Net::ISocketFactory > socketFactory)
 ~TcpServer ()
bool start (int port)
 Start the server on the given port (blocking accept loop).
void stop ()
 Stop the server and close the listening socket.

Constructor & Destructor Documentation

◆ TcpServer()

Xale::Net::TcpServer::TcpServer ( Xale::Engine::QueryEngine & queryEngine,
std::unique_ptr< Xale::Net::ISocketFactory > socketFactory )

◆ ~TcpServer()

Xale::Net::TcpServer::~TcpServer ( )

Member Function Documentation

◆ start()

bool Xale::Net::TcpServer::start ( int port)

Start the server on the given port (blocking accept loop).

Parameters
portTCP port to listen on

◆ stop()

void Xale::Net::TcpServer::stop ( )

Stop the server and close the listening socket.


The documentation for this class was generated from the following files: