8 #ifndef WPIUTIL_WPI_PORTFORWARDER_H_
9 #define WPIUTIL_WPI_PORTFORWARDER_H_
15 #include "wpi/Twine.h"
44 void Add(
unsigned int port,
const Twine& remoteHost,
unsigned int remotePort);
51 void Remove(
unsigned int port);
57 std::unique_ptr<Impl> m_impl;
62 #endif // WPIUTIL_WPI_PORTFORWARDER_H_
WPILib C++ utilities (wpiutil) namespace.
Definition: EventLoopRunner.h:17
void Add(unsigned int port, const Twine &remoteHost, unsigned int remotePort)
Forward a local TCP port to a remote host and port.
void Remove(unsigned int port)
Stop TCP forwarding on a port.
static PortForwarder & GetInstance()
Get an instance of the PortForwarder class.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:85
Forward ports to another host.
Definition: PortForwarder.h:23