Apocalypse mirror
Sourceforge mirror |
News | Info | Characters | Arenas | Screenshots | Forums | Download | ||||
Developer: | Making of | Character-HOWTO | AI Design | Submit a Character | |||
Documentation: | Main Page | Modules | Class Hierarchy | Class List | File List |
#include <OnlineChatBEImpl.h>
Inheritance diagram for COnlineChatBEImpl:
Public Member Functions | |
COnlineChatBEImpl () | |
~COnlineChatBEImpl () | |
virtual void | connect (std::string a_sNick) |
virtual void | disconnect () |
virtual ConnectionStateEnum | getConnectionState () const |
virtual std::string | getMyNick () const |
virtual void | setMyNick (std::string a_sNick) |
virtual ClientModeEnum | getMyClientMode () const |
virtual void | setMyClientMode (ClientModeEnum a_enClientMode) |
virtual const UserInfo & | getMyUserInfo () const |
Same as getUserInfo(0). | |
virtual int | getUserCount () const |
virtual const UserInfo & | getUserInfo (int a_iUserNumber) const |
virtual ClientModeEnum | getClientMode () const |
virtual void | setClientMode (ClientModeEnum a_enNewMode) |
virtual void | addEventSink (IOnlineEventSink *a_poSink) |
virtual void | removeEventSink (IOnlineEventSink *a_poSink) |
virtual void | removeAllEventSinks () |
Protected Types | |
typedef std::list< IOnlineEventSink * > | EventSinkList |
typedef std::list< UserInfo * > | UserInfoList |
Protected Member Functions | |
void | notifyEvent (const IOnlineChatBE::SChatEvent &a_roEvent) |
void | notifyConnectionState (IOnlineChatBE::ConnectionStateEnum a_enOldState, IOnlineChatBE::ConnectionStateEnum a_enNewState, const std::string &a_rsMessage) |
void | notifyConnectionState (const std::string &a_rsMessage) |
void | threadFunction () |
void | internalConnect () |
internalConnect establishes the connection to the server. | |
void | internalDisconnect () |
void | internalProcessMessage () |
Reads one message from the server and processes it. | |
void | sendNick () |
void | sendRawData (char a_cPrefix, const char *a_pcMessage) |
Protected Attributes | |
ConnectionStateEnum | m_enConnectionState |
ConnectionStateEnum | m_enNotifiedState |
ClientModeEnum | m_enClientMode |
std::string | m_sMyNick |
EventSinkList | m_apoSinks |
UserInfoList | m_apoUsers |
TCPsocket | m_poSocket |
SDLNet_SocketSet | m_poSocketSet |
char | m_acIncomingBuffer [4096] |
Received data goes here. | |
int | m_iIncomingBufferSize |
How much of the buffer is filled? | |
SDL_mutex * | m_poLock |
|
|
|
|
|
|
|
|
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Same as getUserInfo(0).
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
internalConnect establishes the connection to the server. It is assumed that the client is NOT connected before this method is called. Successful execution sets the m_poSocket and other connection related attributes, and the m_enConnectionState to CS_Connected |
|
|
|
Reads one message from the server and processes it.
|
|
|
|
|
|
|
|
Implements IOnlineChatBE. |
|
Implements IOnlineChatBE. |
|
|
|
|
|
Implements IOnlineChatBE. |
|
|
|
Implements IOnlineChatBE. |
|
|
|
Received data goes here.
|
|
|
|
|
|
|
|
|
|
|
|
How much of the buffer is filled?
|
|
|
|
|
|
|
|
|