libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::RemoteForward Class Reference

ssh -R equivalent: accept loop that connects each inbound channel to a local endpoint. More...

#include <forwarding.hpp>

Classes

struct  Options
 

Public Member Functions

 RemoteForward (Session &, Options)
 
 ~RemoteForward ()
 
 RemoteForward (const RemoteForward &)=delete
 
RemoteForwardoperator= (const RemoteForward &)=delete
 
Result< void > try_start ()
 
Result< void > try_run_until_stopped ()
 
void stop () noexcept
 
std::uint16_t remote_port () const noexcept
 
ForwardStats stats () const noexcept
 

Detailed Description

ssh -R equivalent: accept loop that connects each inbound channel to a local endpoint.

Constructor & Destructor Documentation

◆ RemoteForward() [1/2]

SSHPP_INLINE sshpp::RemoteForward::RemoteForward ( Session session,
Options  opts 
)

◆ ~RemoteForward()

SSHPP_INLINE sshpp::RemoteForward::~RemoteForward ( )

◆ RemoteForward() [2/2]

sshpp::RemoteForward::RemoteForward ( const RemoteForward )
delete

Member Function Documentation

◆ operator=()

RemoteForward & sshpp::RemoteForward::operator= ( const RemoteForward )
delete

◆ try_start()

SSHPP_INLINE Result< void > sshpp::RemoteForward::try_start ( )

◆ try_run_until_stopped()

SSHPP_INLINE Result< void > sshpp::RemoteForward::try_run_until_stopped ( )

◆ stop()

SSHPP_INLINE void sshpp::RemoteForward::stop ( )
noexcept

◆ remote_port()

std::uint16_t sshpp::RemoteForward::remote_port ( ) const
inlinenoexcept

◆ stats()

SSHPP_INLINE ForwardStats sshpp::RemoteForward::stats ( ) const
noexcept

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