OrocosComponentLibrary
2.8.3
|
This class manages the connection with one single client. More...
#include <datasender.hpp>
Public Member Functions | |
Datasender (RTT::SocketMarshaller *marshaller, Socket *os) | |
bool | isValid () const |
Returns true if the connection of the datasender is valid, false otherwise. | |
void | setLimit (unsigned long long newlimit) |
Only frames up to frame <newlimit> will be processed. | |
void | serialize (const PropertyBag &v) |
Send data to the client. | |
RTT::SocketMarshaller * | getMarshaller () const |
Return the marshaller. | |
bool | addSubscription (const std::string name) |
bool | removeSubscription (const std::string &name) |
void | listSubscriptions () |
Write a list of the current subscriptions to the socket. | |
Socket & | getSocket () const |
Get socket associated with this datasender. | |
virtual void | loop () |
Data connection main loop. | |
virtual bool | breakloop () |
Try to finish this thread. | |
void | silence (bool newstate) |
Disable/enable output of data. | |
void | remove () |
Remove this connection. | |
This class manages the connection with one single client.
It is responsible for sending data to the client and managing the state of the client.
It has a thread responsible for reading data from the socket.
Definition at line 59 of file datasender.hpp.