Public Member Functions | Protected Member Functions | Protected Attributes
ChatClient Class Reference
Inheritance diagram for ChatClient:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ChatClient (string remoteTarget, const string &nick)

Protected Member Functions

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

Protected Attributes

StreaminputStream
string nick
StreamremoteStream

Detailed Description

Definition at line 73 of file chat.cpp.


Constructor & Destructor Documentation

ChatClient::ChatClient ( string  remoteTarget,
const string &  nick 
) [inline]

Definition at line 76 of file chat.cpp.


Member Function Documentation

void ChatClient::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:
streamstream to the target.
abnormalwhether the connection was closed during step (abnormal == false) or when an operation was performed (abnormal == true)

Reimplemented from Dashel::Hub.

Definition at line 114 of file chat.cpp.

void ChatClient::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:
streamstream to the target

Reimplemented from Dashel::Hub.

Definition at line 91 of file chat.cpp.

void ChatClient::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:
streamstream to the target

Reimplemented from Dashel::Hub.

Definition at line 96 of file chat.cpp.


Member Data Documentation

Definition at line 87 of file chat.cpp.

string ChatClient::nick [protected]

Definition at line 89 of file chat.cpp.

Definition at line 88 of file chat.cpp.


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


dashel
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:32