ParCompMark::NetClient Class Reference

#include <PCMNetClient.h>

Inheritance diagram for ParCompMark::NetClient:

Inheritance graph
[legend]
Collaboration diagram for ParCompMark::NetClient:

Collaboration graph
[legend]
List of all members.

Detailed Description

Network client task.

Definition at line 46 of file PCMNetClient.h.


Methods

virtual void initialize ()
 Initialize the class (broadcast recieve thread).
virtual void finalize ()
 Initialize the class (broadcast recieve thread).
virtual void task ()
 Thread for recieve broadcast message.

Public Types

typedef ParCompMark::Pointer<
NetClient, DummyLock
Pointer
 Type for pointer to this class.

Public Member Functions

Constructors & destructor
 NetClient (const std::string &name)
 Create network class.
virtual ~NetClient ()
 The destructor.

Member Typedef Documentation

Type for pointer to this class.

Reimplemented from ParCompMark::Client.

Definition at line 64 of file PCMNetClient.h.


Constructor & Destructor Documentation

ParCompMark::NetClient::NetClient ( const std::string &  name  ) 

Create network class.

Parameters:
[in] name Name of the network.

Definition at line 38 of file PCMNetClient.cpp.

References ParCompMark::Network::getIP(), initialize(), ParCompMark::Network::mIfConfs, and ParCompMark::Network::mOwnIP.

Here is the call graph for this function:

ParCompMark::NetClient::~NetClient (  )  [virtual]

The destructor.

This class has virtual destructor.

Definition at line 50 of file PCMNetClient.cpp.

References finalize(), and ParCompMark::Network::mInitialized.

Here is the call graph for this function:


Member Function Documentation

void ParCompMark::NetClient::finalize (  )  [virtual]

Initialize the class (broadcast recieve thread).

Definition at line 97 of file PCMNetClient.cpp.

References Assert, ParCompMark::Network::mBroadcastSocket, ParCompMark::Network::mInitialized, and ParCompMark::Network::mStreamSocket.

Referenced by ~NetClient().

void ParCompMark::NetClient::initialize (  )  [virtual]

Initialize the class (broadcast recieve thread).

Definition at line 64 of file PCMNetClient.cpp.

References Assert, Except, ParCompMark::Singleton< T >::getInstance(), ParCompMark::Thread::initThread(), ParCompMark::Network::mBroadcastPort, ParCompMark::Network::mBroadcastSocket, ParCompMark::Network::mInitialized, and ParCompMark::Logger::NOTICE.

Referenced by NetClient().

Here is the call graph for this function:

void ParCompMark::NetClient::task (  )  [protected, virtual]

Thread for recieve broadcast message.

Reimplemented from ParCompMark::Thread.

Definition at line 119 of file PCMNetClient.cpp.

References Except, ParCompMark::Client::handleMessage(), ParCompMark::Network::mBroadcastSocket, ParCompMark::Client::mMessage, ParCompMark::Client::mServerIP, and ParCompMark::Client::mType.

Here is the call graph for this function:


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