Class FelixClientThreadExtension421
Defined in File felix_client_thread_extension421.hpp
Inheritance Relationships
Base Type
public FelixClientThreadExtension42(Class FelixClientThreadExtension42)
Derived Type
public FelixClientThreadExtension422(Class FelixClientThreadExtension422)
Class Documentation
-
class FelixClientThreadExtension421 : public FelixClientThreadExtension42
Subclassed by FelixClientThreadExtension422
Public Functions
-
inline virtual ~FelixClientThreadExtension421()
-
virtual void send_data(uint64_t fid, const std::vector<const uint8_t*> &msgs, const std::vector<size_t> &sizes) = 0
Function to send a group of messages to a remote fid.
This function overload allows to send a set of messages in a single send operation. The pointers to the messages and their sizes need to be passed to this function. Otherwise it works as send_data for a single message.
- Parameters:
fid – The fid, typically published by felix-toflx, to which the messages are addressed to.
msgs – Vector of pointers to messages.
sizes – Vector of message sizes.
- Throws:
FelixClientException – if the send operation fails.
-
void send_data(uint64_t fid, const uint8_t *data, size_t size, bool flush) = 0
Function to send a message to a remote fid.
This function takes care of establishing a connection to the remote endpoint if not already available. The send request is passed to the eventloop thread. The caller thread is blocked until the send operation is completed.
- Parameters:
fid – The fid, typically published by felix-toflx, to which the message is addressed to.
data – Pointer to message
size – Size of message
flush – For buffered mode, indicates if the buffer shall be sent right away.
- Throws:
FelixClientException – if the subscription fails.
-
inline virtual ~FelixClientThreadExtension421()