All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | Static Private Attributes | Friends
castor::net::Communication Class Reference

#include <Communication.h>

List of all members.

Public Member Functions

asio::io_serviceasioService ()
CastorChannelPtr create (const std::string spec) throw (NetException)
CastorChannelPtr create (const NetAddress &address) throw (NetException)
void run ()
void start (size_t threads=2)
void stop ()
void wait ()
virtual ~Communication ()

Static Public Member Functions

static CommunicationPtr getInstance ()

Protected Member Functions

 Communication ()

Protected Attributes

bool initialised
asio::io_service service

Private Types

typedef std::vector< ThreadPtrThreadPool
typedef boost::shared_ptr
< asio::thread
ThreadPtr

Private Attributes

ThreadPool threadPool

Static Private Attributes

static CommunicationPtr instance
static boost::mutex mutex

Friends

class CastorChannel

Detailed Description

Definition at line 17 of file Communication.h.


Member Typedef Documentation

typedef std::vector<ThreadPtr> castor::net::Communication::ThreadPool [private]

Definition at line 25 of file Communication.h.

typedef boost::shared_ptr<asio::thread> castor::net::Communication::ThreadPtr [private]

Definition at line 24 of file Communication.h.


Constructor & Destructor Documentation

Definition at line 8 of file Communication.cpp.

Definition at line 13 of file Communication.cpp.


Member Function Documentation

Definition at line 81 of file Communication.cpp.

Definition at line 27 of file Communication.cpp.

Definition at line 31 of file Communication.cpp.

Definition at line 16 of file Communication.cpp.

Definition at line 35 of file Communication.cpp.

void castor::net::Communication::start ( size_t  threads = 2)

Definition at line 41 of file Communication.cpp.

Definition at line 58 of file Communication.cpp.

Definition at line 75 of file Communication.cpp.


Friends And Related Function Documentation

friend class CastorChannel [friend]

Definition at line 31 of file Communication.h.


Member Data Documentation

Definition at line 34 of file Communication.h.

Definition at line 22 of file Communication.h.

boost::mutex castor::net::Communication::mutex [static, private]

Definition at line 21 of file Communication.h.

Definition at line 33 of file Communication.h.

Definition at line 27 of file Communication.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41