Public Member Functions | Private Member Functions | Private Attributes | List of all members
ros::ServiceClientLink Class Reference

Handles a connection to a single incoming service client. More...

#include <service_client_link.h>

Inheritance diagram for ros::ServiceClientLink:
Inheritance graph
[legend]

Public Member Functions

const ConnectionPtrgetConnection ()
 
bool handleHeader (const Header &header)
 
bool initialize (const ConnectionPtr &connection)
 
void processResponse (bool ok, const SerializedMessage &res)
 Writes a response to the current request. More...
 
 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::signals2::connection dropped_conn_
 
ServicePublicationWPtr parent_
 
bool persistent_
 

Detailed Description

Handles a connection to a single incoming service client.

Definition at line 52 of file service_client_link.h.

Constructor & Destructor Documentation

◆ ServiceClientLink()

ros::ServiceClientLink::ServiceClientLink ( )

Definition at line 49 of file service_client_link.cpp.

◆ ~ServiceClientLink()

ros::ServiceClientLink::~ServiceClientLink ( )
virtual

Definition at line 54 of file service_client_link.cpp.

Member Function Documentation

◆ getConnection()

const ConnectionPtr& ros::ServiceClientLink::getConnection ( )
inline

Definition at line 69 of file service_client_link.h.

◆ handleHeader()

bool ros::ServiceClientLink::handleHeader ( const Header header)

Definition at line 77 of file service_client_link.cpp.

◆ initialize()

bool ros::ServiceClientLink::initialize ( const ConnectionPtr connection)

Definition at line 69 of file service_client_link.cpp.

◆ onConnectionDropped()

void ros::ServiceClientLink::onConnectionDropped ( const ConnectionPtr conn)
private

Definition at line 163 of file service_client_link.cpp.

◆ onHeaderWritten()

void ros::ServiceClientLink::onHeaderWritten ( const ConnectionPtr conn)
private

Definition at line 174 of file service_client_link.cpp.

◆ onRequest()

void ros::ServiceClientLink::onRequest ( const ConnectionPtr conn,
const boost::shared_array< uint8_t > &  buffer,
uint32_t  size,
bool  success 
)
private

Definition at line 204 of file service_client_link.cpp.

◆ onRequestLength()

void ros::ServiceClientLink::onRequestLength ( const ConnectionPtr conn,
const boost::shared_array< uint8_t > &  buffer,
uint32_t  size,
bool  success 
)
private

Definition at line 180 of file service_client_link.cpp.

◆ onResponseWritten()

void ros::ServiceClientLink::onResponseWritten ( const ConnectionPtr conn)
private

Definition at line 222 of file service_client_link.cpp.

◆ processResponse()

void ros::ServiceClientLink::processResponse ( bool  ok,
const SerializedMessage res 
)

Writes a response to the current request.

Parameters
okWhether the callback was successful or not
respThe message response. ServiceClientLink will delete this

Definition at line 237 of file service_client_link.cpp.

Member Data Documentation

◆ connection_

ConnectionPtr ros::ServiceClientLink::connection_
private

Definition at line 79 of file service_client_link.h.

◆ dropped_conn_

boost::signals2::connection ros::ServiceClientLink::dropped_conn_
private

Definition at line 82 of file service_client_link.h.

◆ parent_

ServicePublicationWPtr ros::ServiceClientLink::parent_
private

Definition at line 80 of file service_client_link.h.

◆ persistent_

bool ros::ServiceClientLink::persistent_
private

Definition at line 81 of file service_client_link.h.


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


roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:36