Handles a connection to a single publisher on a given topic. Receives messages from a publisher and hands them off to its parent Subscription. More...
#include <publisher_link.h>
Classes | |
class | Stats |
Public Member Functions | |
virtual void | drop ()=0 |
const std::string & | getCallerID () |
int | getConnectionID () const |
const std::string & | getMD5Sum () |
const std::string & | getPublisherXMLRPCURI () |
const Stats & | getStats () |
virtual std::string | getTransportInfo ()=0 |
virtual std::string | getTransportType ()=0 |
virtual void | handleMessage (const SerializedMessage &m, bool ser, bool nocopy)=0 |
Handles handing off a received message to the subscription, where it will be deserialized and called back. More... | |
bool | isLatched () |
PublisherLink (const SubscriptionPtr &parent, const std::string &xmlrpc_uri, const TransportHints &transport_hints) | |
bool | setHeader (const Header &header) |
virtual | ~PublisherLink () |
Protected Attributes | |
std::string | caller_id_ |
unsigned int | connection_id_ |
Header | header_ |
bool | latched_ |
std::string | md5sum_ |
SubscriptionWPtr | parent_ |
std::string | publisher_xmlrpc_uri_ |
Stats | stats_ |
TransportHints | transport_hints_ |
Handles a connection to a single publisher on a given topic. Receives messages from a publisher and hands them off to its parent Subscription.
Definition at line 56 of file publisher_link.h.
ros::PublisherLink::PublisherLink | ( | const SubscriptionPtr & | parent, |
const std::string & | xmlrpc_uri, | ||
const TransportHints & | transport_hints | ||
) |
Definition at line 51 of file publisher_link.cpp.
|
virtual |
Definition at line 60 of file publisher_link.cpp.
|
pure virtual |
Implemented in ros::TransportPublisherLink, and ros::IntraProcessPublisherLink.
|
inline |
Definition at line 74 of file publisher_link.h.
|
inline |
Definition at line 73 of file publisher_link.h.
const std::string & ros::PublisherLink::getMD5Sum | ( | ) |
Definition at line 107 of file publisher_link.cpp.
const std::string & ros::PublisherLink::getPublisherXMLRPCURI | ( | ) |
Definition at line 102 of file publisher_link.cpp.
|
inline |
Definition at line 71 of file publisher_link.h.
|
pure virtual |
Implemented in ros::TransportPublisherLink, and ros::IntraProcessPublisherLink.
|
pure virtual |
Implemented in ros::TransportPublisherLink, and ros::IntraProcessPublisherLink.
|
pure virtual |
Handles handing off a received message to the subscription, where it will be deserialized and called back.
Implemented in ros::TransportPublisherLink, and ros::IntraProcessPublisherLink.
|
inline |
Definition at line 75 of file publisher_link.h.
bool ros::PublisherLink::setHeader | ( | const Header & | header | ) |
Definition at line 63 of file publisher_link.cpp.
|
protected |
Definition at line 99 of file publisher_link.h.
|
protected |
Definition at line 91 of file publisher_link.h.
|
protected |
Definition at line 100 of file publisher_link.h.
|
protected |
Definition at line 98 of file publisher_link.h.
|
protected |
Definition at line 101 of file publisher_link.h.
|
protected |
Definition at line 90 of file publisher_link.h.
|
protected |
Definition at line 92 of file publisher_link.h.
|
protected |
Definition at line 94 of file publisher_link.h.
|
protected |
Definition at line 96 of file publisher_link.h.