$search

MicroTerm Class Reference

Inheritance diagram for MicroTerm:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MicroTerm (const char *t0, const char *t1)

Protected Member Functions

void connectionClosed (Stream *stream, bool abnormal)
void connectionCreated (Stream *stream)
void incomingData (Stream *stream)

Protected Attributes

Streams0
Streams1

Detailed Description

Definition at line 10 of file microterm.cpp.


Constructor & Destructor Documentation

MicroTerm::MicroTerm ( const char *  t0,
const char *  t1 
) [inline]

Definition at line 13 of file microterm.cpp.


Member Function Documentation

void MicroTerm::connectionClosed ( Stream ,
bool   
) [inline, protected, virtual]

Called when target closes connection. The only valid method to call on the stream is getTargetName(), input/output operations are forbidden. You must not call closeStream(stream) from within this method for the same stream as the one passed as parameter. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target.
abnormal whether the connection was closed during step (abnormal == false) or when an operation was performed (abnormal == true)

Reimplemented from Dashel::Hub.

Definition at line 61 of file microterm.cpp.

void MicroTerm::connectionCreated ( Stream  )  [inline, protected, virtual]

Called when any data connection is created. It is not called when a listening connection (eg tcpin:) is created. If the stream is closed during this method, an exception occurs: the caller is responsible to handle it. The stream is already inserted in the stream list when this function is called. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Dashel::Hub.

Definition at line 23 of file microterm.cpp.

void MicroTerm::incomingData ( Stream  )  [inline, protected, virtual]

Called when data is available for reading on the stream. If the stream is closed during this method, an exception occurs: Hub stops the execution of this method and calls connectionClosed(); objects dynamically allocated must thus be handled with auto_ptr. If step() is used, subclass must implement this method and call read at least once. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Dashel::Hub.

Definition at line 28 of file microterm.cpp.


Member Data Documentation

Stream* MicroTerm::s0 [protected]

Definition at line 20 of file microterm.cpp.

Stream* MicroTerm::s1 [protected]

Definition at line 21 of file microterm.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


dashel
Author(s): Stéphane Magnenat
autogenerated on Sat Mar 2 12:31:30 2013