Faspstream Manager C/C++ API  3.6.1
A C and C++ language interface to basic streaming over the fasp protocol
ChannelHandler Class Reference

#include <ChannelHandler.h>

Inheritance diagram for ChannelHandler:

Public Member Functions

 ChannelHandler (Poco::Net::StreamSocket &socket, FaspConnectionChannel &channel)
 
 ~ChannelHandler ()
 
virtual void run ()
 
virtual void stop ()
 

Constructor & Destructor Documentation

ChannelHandler::ChannelHandler ( Poco::Net::StreamSocket &  socket,
FaspConnectionChannel channel 
)
inline

Constructor.

Parameters
socketa TCP socket connected to the local faspstream process
channelthe abstract interface to share TCP connection
ChannelHandler::~ChannelHandler ( )
inline

Member Function Documentation

virtual void ChannelHandler::run ( )
virtual

Invoked by Poco::Thread when it is spawned. This runs the main loop that tunnels data between the local and remote faspstreams. Part of the Poco::Runnable interface.

virtual void ChannelHandler::stop ( )
virtual

Call this when the thread should stop. This will close the TCP connection to the local faspstream process and invoke the channel's close method.


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