namespace comms_test

Overview

namespace comms_test {

// classes

class OneShotServer;

// global functions

std::unique_ptr<mrpt::comms::CServerTCPSocket> listenOnFreePort(unsigned short& outPort);

} // namespace comms_test

Global Functions

std::unique_ptr<mrpt::comms::CServerTCPSocket> listenOnFreePort(unsigned short& outPort)

Opens a listening socket on 127.0.0.1 at some free port, so that tests never depend on one particular port being available.

Returns a null pointer if no port in the search range could be bound.