Socket Class Reference

Class for managing the socket. More...

#include <socket.h>

List of all members.

Public Member Functions

 Socket (SocketManager &rSocketManager, QObject *parent=0)
 Constructor.
 ~Socket ()
 Destructor.
void connectToHost (const std::string &hostname, const int port)
 Connects the socket to the server.
Socketoperator<< (const std::string &xmlMessage)
 It writes a string.
void close ()
 Close the socket (i.e close the connection).


Detailed Description

Class for managing the socket.

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

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


Constructor & Destructor Documentation

Socket::Socket SocketManager rSocketManager,
QObject *  parent = 0
 

Constructor.

Parameters:
parent QObject parent.
rSocketManager Manager in charge of this socket.


Member Function Documentation

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

Connects the socket to the server.

Parameters:
hostname Server hostname.
port Port to use.

Socket & Socket::operator<< const std::string &  xmlMessage  ) 
 

It writes a string.

It writes the length of the string, and then the string itself.

Parameters:
xmlMessage String to write.
Returns:
Reference to the Socket.


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