Class FelixClientThreadExtension422

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class FelixClientThreadExtension422 : public FelixClientThreadExtension421

Subclassed by FelixClientThreadExtension423

Public Functions

inline virtual ~FelixClientThreadExtension422()
virtual void send_data_nb(uint64_t fid, const uint8_t *data, size_t size, bool flush) = 0

Function to send a message to a remote fid without blocking.

This function sends data in a non-blocking way from the user perspective: the actual send operation is performed by the evloop thread but the function returns immediately instead of blocking until the operation is successfull. This function makes a copy of the data thus, when the function returns, it is safe to use the data memory again.

Note

: in order to be non-blocking, this function cannot take care of initializing the send connection. This means the user has to call init_send_data() beforehand and wait for the connection to be established before the sending messages. Sending anyway will result in a felix::SendConnectionException.

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 send operation fails.

virtual void send_data_nb(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 without blocking. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function overloads send_data_nb() allowing to send a vector of messages in one send operation.

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.