Handles a connection to a single incoming service client. More...
#include <service_client_link.h>
Public Member Functions | |
| const ConnectionPtr & | getConnection () |
| bool | handleHeader (const Header &header) |
| bool | initialize (const ConnectionPtr &connection) |
| void | processResponse (bool ok, const SerializedMessage &res) |
| Writes a response to the current request. | |
| ServiceClientLink () | |
| virtual | ~ServiceClientLink () |
Private Member Functions | |
| void | onConnectionDropped (const ConnectionPtr &conn) |
| void | onHeaderWritten (const ConnectionPtr &conn) |
| void | onRequest (const ConnectionPtr &conn, const boost::shared_array< uint8_t > &buffer, uint32_t size, bool success) |
| void | onRequestLength (const ConnectionPtr &conn, const boost::shared_array< uint8_t > &buffer, uint32_t size, bool success) |
| void | onResponseWritten (const ConnectionPtr &conn) |
Private Attributes | |
| ConnectionPtr | connection_ |
| boost::signals::connection | dropped_conn_ |
| ServicePublicationWPtr | parent_ |
| bool | persistent_ |
Handles a connection to a single incoming service client.
Definition at line 52 of file service_client_link.h.
| ros::ServiceClientLink::ServiceClientLink | ( | ) |
Definition at line 39 of file service_client_link.cpp.
| ros::ServiceClientLink::~ServiceClientLink | ( | ) | [virtual] |
Definition at line 44 of file service_client_link.cpp.
| const ConnectionPtr& ros::ServiceClientLink::getConnection | ( | ) | [inline] |
Definition at line 69 of file service_client_link.h.
| bool ros::ServiceClientLink::handleHeader | ( | const Header & | header | ) |
Definition at line 67 of file service_client_link.cpp.
| bool ros::ServiceClientLink::initialize | ( | const ConnectionPtr & | connection | ) |
Definition at line 59 of file service_client_link.cpp.
| void ros::ServiceClientLink::onConnectionDropped | ( | const ConnectionPtr & | conn | ) | [private] |
Definition at line 153 of file service_client_link.cpp.
| void ros::ServiceClientLink::onHeaderWritten | ( | const ConnectionPtr & | conn | ) | [private] |
Definition at line 163 of file service_client_link.cpp.
| void ros::ServiceClientLink::onRequest | ( | const ConnectionPtr & | conn, | |
| const boost::shared_array< uint8_t > & | buffer, | |||
| uint32_t | size, | |||
| bool | success | |||
| ) | [private] |
Definition at line 191 of file service_client_link.cpp.
| void ros::ServiceClientLink::onRequestLength | ( | const ConnectionPtr & | conn, | |
| const boost::shared_array< uint8_t > & | buffer, | |||
| uint32_t | size, | |||
| bool | success | |||
| ) | [private] |
Definition at line 168 of file service_client_link.cpp.
| void ros::ServiceClientLink::onResponseWritten | ( | const ConnectionPtr & | conn | ) | [private] |
Definition at line 208 of file service_client_link.cpp.
| void ros::ServiceClientLink::processResponse | ( | bool | ok, | |
| const SerializedMessage & | res | |||
| ) |
Writes a response to the current request.
| ok | Whether the callback was successful or not | |
| resp | The message response. ServiceClientLink will delete this |
Definition at line 222 of file service_client_link.cpp.
Definition at line 79 of file service_client_link.h.
boost::signals::connection ros::ServiceClientLink::dropped_conn_ [private] |
Definition at line 82 of file service_client_link.h.
Definition at line 80 of file service_client_link.h.
bool ros::ServiceClientLink::persistent_ [private] |
Definition at line 81 of file service_client_link.h.