SocketManager Class Reference

SocketManager manages the Socket object. More...

#include <socketmanager.h>

Inheritance diagram for SocketManager:

BaseManager List of all members.

Public Member Functions

 SocketManager (ConnectionManager &rConnectionManager, KernelMessenger &rKernel, ListeWidget &rWidget)
 Constructor.
 ~SocketManager ()
 Destructor.
void writeMessage (const BaseMessage &message)
 It writes a messages in the socket.
void close ()
 Closes the socket connection.
void connectToHost (const std::string &hostname, const int port)
 Connects the socket to the specified host and port.
void messageRead (const std::string &xmlMessage)
 Method called when a message is read from the socket.
void setSocketStatus (const bool bStatus)
 Method called when the socket status is changed.

Detailed Description

SocketManager manages the Socket object.

Author:
Sylvain Archenault <sylvain.archenault@laposte.net>

Yves Houpert <yves.houpert@insa-rouen.fr>


Constructor & Destructor Documentation

SocketManager::SocketManager ConnectionManager rConnectionManager,
KernelMessenger rKernel,
ListeWidget rWidget
 

Constructor.

Parameters:
rConnectionManager Reference to the connection manager in charge of the connection.
rKernel Reference to the Kernel Messenger.
rWidget Reference to the ListeWidget.


Member Function Documentation

void SocketManager::connectToHost const std::string &  hostname,
const int  port
 

Connects the socket to the specified host and port.

Parameters:
hostname Hostname to connect to.
port Port to use for the connection.

void SocketManager::messageRead const std::string &  xmlMessage  ) 
 

Method called when a message is read from the socket.

Parameters:
xmlMessage Message read.

void SocketManager::setSocketStatus const bool  bStatus  ) 
 

Method called when the socket status is changed.

Parameters:
bStatus true for connected, false otherwise.

void SocketManager::writeMessage const BaseMessage message  ) 
 

It writes a messages in the socket.

Parameters:
message Message to write.


The documentation for this class was generated from the following files:
Generated on Fri May 19 12:15:55 2006 for Bamboo Ch@t by  doxygen 1.4.6