Private data for the Node class.
More...
#include <ignition/transport/NodeShared.hh>
|
| static const int | Timeout = 250 |
| | Timeout used for receiving messages (ms.). More...
|
| |
Private data for the Node class.
This class should not be directly used. You should use the Node class.
◆ NodeShared()
| ignition::transport::NodeShared::NodeShared |
( |
| ) |
|
|
protected |
◆ ~NodeShared()
| virtual ignition::transport::NodeShared::~NodeShared |
( |
| ) |
|
|
protectedvirtual |
◆ Instance()
| static NodeShared* ignition::transport::NodeShared::Instance |
( |
| ) |
|
|
static |
◆ OnNewConnection()
| void ignition::transport::NodeShared::OnNewConnection |
( |
const MessagePublisher & |
_pub | ) |
|
Callback executed when the discovery detects new topics.
- Parameters
-
| [in] | _pub | Information of the publisher in charge of the topic. |
◆ OnNewDisconnection()
| void ignition::transport::NodeShared::OnNewDisconnection |
( |
const MessagePublisher & |
_pub | ) |
|
Callback executed when the discovery detects disconnections.
- Parameters
-
| [in] | _pub | Information of the publisher in charge of the topic. |
◆ OnNewSrvConnection()
| void ignition::transport::NodeShared::OnNewSrvConnection |
( |
const ServicePublisher & |
_pub | ) |
|
Callback executed when the discovery detects a new service call.
- Parameters
-
| [in] | _pub | Information of the publisher in charge of the service. |
◆ OnNewSrvDisconnection()
| void ignition::transport::NodeShared::OnNewSrvDisconnection |
( |
const ServicePublisher & |
_pub | ) |
|
Callback executed when a service call is no longer available.
- Parameters
-
| [in] | _pub | Information of the publisher in charge of the service. |
◆ Publish()
| bool ignition::transport::NodeShared::Publish |
( |
const std::string & |
_topic, |
|
|
const std::string & |
_data, |
|
|
const std::string & |
_msgType |
|
) |
| |
Publish data.
- Parameters
-
| [in] | _topic | Topic to be published. |
| [in] | _data | Data to publish. |
| [in] | _msgType | Message type in string format. |
- Returns
- true when success or false otherwise.
◆ RecvControlUpdate()
| void ignition::transport::NodeShared::RecvControlUpdate |
( |
| ) |
|
Method in charge of receiving the control updates (when a new remote subscriber notifies its presence for example).
◆ RecvMsgUpdate()
| void ignition::transport::NodeShared::RecvMsgUpdate |
( |
| ) |
|
Method in charge of receiving the topic updates.
◆ RecvSrvRequest()
| void ignition::transport::NodeShared::RecvSrvRequest |
( |
| ) |
|
Method in charge of receiving the service call requests.
◆ RecvSrvResponse()
| void ignition::transport::NodeShared::RecvSrvResponse |
( |
| ) |
|
Method in charge of receiving the service call responses.
◆ RunReceptionTask()
| void ignition::transport::NodeShared::RunReceptionTask |
( |
| ) |
|
Receive data and control messages.
◆ SendPendingRemoteReqs()
| void ignition::transport::NodeShared::SendPendingRemoteReqs |
( |
const std::string & |
_topic, |
|
|
const std::string & |
_reqType, |
|
|
const std::string & |
_repType |
|
) |
| |
Try to send all the requests for a given service call and a pair of request/response types.
- Parameters
-
| [in] | _topic | Topic name. |
| [in] | _reqType | Type of the request in string format. |
| [in] | _repType | Type of the response in string format. |
◆ context
| std::unique_ptr<zmq::context_t> ignition::transport::NodeShared::context |
0MQ context.
Always declare this object before any ZMQ socket to make sure that the context is destroyed after all sockets.
◆ control
| std::unique_ptr<zmq::socket_t> ignition::transport::NodeShared::control |
ZMQ socket to receive control updates (new connections, ...).
◆ exit
| bool ignition::transport::NodeShared::exit |
When true, the reception thread will finish.
◆ hostAddr
| std::string ignition::transport::NodeShared::hostAddr |
◆ localSubscriptions
◆ msgDiscovery
| std::unique_ptr<MsgDiscovery> ignition::transport::NodeShared::msgDiscovery |
◆ mutex
| std::recursive_mutex ignition::transport::NodeShared::mutex |
Mutex to guarantee exclusive access between all threads.
◆ myAddress
| std::string ignition::transport::NodeShared::myAddress |
◆ myControlAddress
| std::string ignition::transport::NodeShared::myControlAddress |
My pub/sub control address.
◆ myReplierAddress
| std::string ignition::transport::NodeShared::myReplierAddress |
My replier service call address.
◆ myRequesterAddress
| std::string ignition::transport::NodeShared::myRequesterAddress |
My requester service call address.
◆ publisher
| std::unique_ptr<zmq::socket_t> ignition::transport::NodeShared::publisher |
ZMQ socket to send topic updates.
◆ pUuid
| std::string ignition::transport::NodeShared::pUuid |
◆ remoteSubscribers
◆ replier
| std::unique_ptr<zmq::socket_t> ignition::transport::NodeShared::replier |
ZMQ socket to receive service call requests.
◆ replierId
| Uuid ignition::transport::NodeShared::replierId |
◆ repliers
◆ requester
| std::unique_ptr<zmq::socket_t> ignition::transport::NodeShared::requester |
ZMQ socket for sending service call requests.
◆ requests
Pending service call requests.
◆ responseReceiver
| std::unique_ptr<zmq::socket_t> ignition::transport::NodeShared::responseReceiver |
ZMQ socket for receiving service call responses.
◆ responseReceiverId
| Uuid ignition::transport::NodeShared::responseReceiverId |
Response receiver socket identity.
◆ srvDiscovery
| std::unique_ptr<SrvDiscovery> ignition::transport::NodeShared::srvDiscovery |
◆ subscriber
| std::unique_ptr<zmq::socket_t> ignition::transport::NodeShared::subscriber |
ZMQ socket to receive topic updates.
◆ threadReception
| std::thread ignition::transport::NodeShared::threadReception |
thread in charge of receiving and handling incoming messages.
◆ Timeout
| const int ignition::transport::NodeShared::Timeout = 250 |
|
static |
Timeout used for receiving messages (ms.).
◆ timeout
| int ignition::transport::NodeShared::timeout |
Timeout used for receiving requests.
◆ verbose
| int ignition::transport::NodeShared::verbose |
Print activity to stdout.
The documentation for this class was generated from the following file: