FRIBParallelanalysis
1.0
FrameworkforMPIParalleldataanalysisatFRIB
|
#include <CTCLTcpServerInstance.h>
Public Member Functions | |
CTCLTcpServerInstance (CTCLInterpreter *pInterp, Tcl_Channel connection, CTCLServer *pServer) | |
virtual | ~CTCLTcpServerInstance () |
virtual void | onEndFile () |
virtual void | returnResult () |
![]() | |
CTCLChannelCommander (CTCLInterpreter *interp, Tcl_Channel channel) | |
virtual | ~CTCLChannelCommander () |
virtual void | start () |
virtual void | stop () |
Tcl_Channel | getChannel () const |
virtual void | onInput () |
virtual void | onInputException () |
virtual void | onCommand () |
virtual void | prompt1 () |
virtual void | prompt2 () |
virtual void | sendPrompt (std::string prompt) |
bool | stopped () const |
Additional Inherited Members | |
![]() | |
static void | inputRelay (ClientData pData, int mask) |
![]() | |
std::string | prompt1String () |
std::string | prompt2String () |
std::string | getPromptString (const char *scriptVariable, const char *defaultValue) |
![]() | |
CTCLInterpreter * | m_pInterp |
Tcl_Channel | m_channel |
std::string | m_command |
bool | m_active |
Server instance for a Tcl TCP server. Subclass of CTCLChannelCommander we supply:
CTCLTcpServerInstance::CTCLTcpServerInstance | ( | CTCLInterpreter * | pInterp, |
Tcl_Channel | connection, | ||
CTCLServer * | pServer | ||
) |
Construction just invokes base class construction and saves the listener pointer so that onEndFile can call it.
|
virtual |
Destruction gets and closes the channel. Typically destruction happens when onEndFile calls the instanceExite member to indicate it's exiting.
|
virtual |
Called when an end file is detected on the socket. This means the client has disconnected.
Reimplemented from CTCLChannelCommander.
|
virtual |
The resultis returned by writing it to the channel.
Reimplemented from CTCLChannelCommander.