FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | List of all members
CTCLTcpServerInstance Class Reference

#include <CTCLTcpServerInstance.h>

Inheritance diagram for CTCLTcpServerInstance:
Inheritance graph
[legend]
Collaboration diagram for CTCLTcpServerInstance:
Collaboration graph
[legend]

Public Member Functions

 CTCLTcpServerInstance (CTCLInterpreter *pInterp, Tcl_Channel connection, CTCLServer *pServer)
 
virtual ~CTCLTcpServerInstance ()
 
virtual void onEndFile ()
 
virtual void returnResult ()
 
- Public Member Functions inherited from CTCLChannelCommander
 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 Public Member Functions inherited from CTCLChannelCommander
static void inputRelay (ClientData pData, int mask)
 
- Protected Member Functions inherited from CTCLChannelCommander
std::string prompt1String ()
 
std::string prompt2String ()
 
std::string getPromptString (const char *scriptVariable, const char *defaultValue)
 
- Protected Attributes inherited from CTCLChannelCommander
CTCLInterpreterm_pInterp
 
Tcl_Channel m_channel
 
std::string m_command
 
bool m_active
 

Detailed Description

Server instance for a Tcl TCP server. Subclass of CTCLChannelCommander we supply:

Constructor & Destructor Documentation

◆ CTCLTcpServerInstance()

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.

◆ ~CTCLTcpServerInstance()

CTCLTcpServerInstance::~CTCLTcpServerInstance ( )
virtual

Destruction gets and closes the channel. Typically destruction happens when onEndFile calls the instanceExite member to indicate it's exiting.

Member Function Documentation

◆ onEndFile()

void CTCLTcpServerInstance::onEndFile ( )
virtual

Called when an end file is detected on the socket. This means the client has disconnected.

Reimplemented from CTCLChannelCommander.

◆ returnResult()

void CTCLTcpServerInstance::returnResult ( )
virtual

The resultis returned by writing it to the channel.

Reimplemented from CTCLChannelCommander.


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