CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkEventBus::ctkNetworkConnectorZeroMQ Class Reference

#include <Plugins/org.commontk.eventbus/ctkNetworkConnectorZeroMQ.h>

Inheritance diagram for ctkEventBus::ctkNetworkConnectorZeroMQ:
Inheritance graph
[legend]
Collaboration diagram for ctkEventBus::ctkNetworkConnectorZeroMQ:
Collaboration graph
[legend]

Public Member Functions

ctkNetworkConnectorclone ()
 retrieve an instance of the object More...
 
void createClient (const QString hostName, const unsigned int port)
 create the unique instance of the client. More...
 
void createServer (const unsigned int port)
 create the unique instance of the server. More...
 
 ctkNetworkConnectorZeroMQ ()
 object constructor. More...
 
void initializeForEventBus ()
 register all the signals and slots More...
 
void send (const QString event_id, ctkEventArgumentsList *argList)
 Allow to send a network request. More...
 
void startListen ()
 Start the server. More...
 
 ~ctkNetworkConnectorZeroMQ ()
 object destructor. More...
 
- Public Member Functions inherited from ctkEventBus::ctkNetworkConnector
 ctkNetworkConnector ()
 object constructor. More...
 
QString protocol ()
 retrieve the protocol type of the connector More...
 

Additional Inherited Members

- Signals inherited from ctkEventBus::ctkNetworkConnector
void remoteCommunication (const QString event_id, ctkEventArgumentsList *argList)
 signal for send a message to through network More...
 
- Protected Attributes inherited from ctkEventBus::ctkNetworkConnector
QString m_Protocol
 define the protocol of the connector (xmlrpc, soap, etc...) More...
 
- Properties inherited from ctkEventBus::ctkNetworkConnector
QString protocol
 

Detailed Description

Class name: ctkNetworkConnectorZeroMQ This class is the implementation class for client/server objects that works over network with xml-rpc protocol. The server side part also create a new ID named REGISTER_SERVER_METHODS_XXX (where the XXX is the port on which run the server) that allows you to register your own remote callbacks. The library used is qxmlrpc.

Definition at line 27 of file ctkNetworkConnectorZeroMQ.h.

Constructor & Destructor Documentation

◆ ctkNetworkConnectorZeroMQ()

ctkEventBus::ctkNetworkConnectorZeroMQ::ctkNetworkConnectorZeroMQ ( )

object constructor.

◆ ~ctkNetworkConnectorZeroMQ()

ctkEventBus::ctkNetworkConnectorZeroMQ::~ctkNetworkConnectorZeroMQ ( )

object destructor.

Member Function Documentation

◆ clone()

ctkNetworkConnector* ctkEventBus::ctkNetworkConnectorZeroMQ::clone ( )
virtual

retrieve an instance of the object

Implements ctkEventBus::ctkNetworkConnector.

◆ createClient()

void ctkEventBus::ctkNetworkConnectorZeroMQ::createClient ( const QString  hostName,
const unsigned int  port 
)
virtual

create the unique instance of the client.

Implements ctkEventBus::ctkNetworkConnector.

◆ createServer()

void ctkEventBus::ctkNetworkConnectorZeroMQ::createServer ( const unsigned int  port)
virtual

create the unique instance of the server.

Implements ctkEventBus::ctkNetworkConnector.

◆ initializeForEventBus()

void ctkEventBus::ctkNetworkConnectorZeroMQ::initializeForEventBus ( )
virtual

register all the signals and slots

Implements ctkEventBus::ctkNetworkConnector.

◆ send()

void ctkEventBus::ctkNetworkConnectorZeroMQ::send ( const QString  event_id,
ctkEventArgumentsList argList 
)
virtual

Allow to send a network request.

Contains the conversion between maf datatypes and qxmlrpc datatype based both on QVariant.

Implements ctkEventBus::ctkNetworkConnector.

◆ startListen()

void ctkEventBus::ctkNetworkConnectorZeroMQ::startListen ( )
virtual

Start the server.

Implements ctkEventBus::ctkNetworkConnector.


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