Class FelixClientThreadExtension42
Defined in File felix_client_thread_extension42.hpp
Inheritance Relationships
Base Type
public FelixClientThreadExtension(Class FelixClientThreadExtension)
Derived Type
public FelixClientThreadExtension421(Class FelixClientThreadExtension421)
Class Documentation
-
class FelixClientThreadExtension42 : public FelixClientThreadExtension
Subclassed by FelixClientThreadExtension421
Public Functions
-
inline virtual ~FelixClientThreadExtension42()
-
virtual Status send_cmd(const std::vector<uint64_t> &fids, Cmd cmd, const std::vector<std::string> &cmd_args, std::vector<Reply> &replies) = 0
Function to send a command to felix-register.
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:
fids – The fid, typically published by felix-toflx, to which the message is addressed to.
cmd – Pointer to message
cmd_args – Size of message
replies – For buffered mode, indicates if the buffer shall be sent right away.
- Throws:
FelixClientException – if sending the command fails.
-
virtual void subscribe(const std::vector<uint64_t> &fids) = 0
Subscribe to a list of fids.
The remote endpoint is identified from felix-bus and a connection is established if not already present. The creation of sockets and network buffers is performed in the event loop thread. This function blocks the caller thread until an attempt to establish the connection has started or the subscription message is sent to the remote endpoint.
If a timeout is specified using the FELIX_CLIENT_TIMEOUT property, the function blocks until the subscription succeds or the timeout expires. A successful subscription will be either way acknowledge by the OnConnectCallback callback. A subscription is considered successful if the request was received by the remote endpoint.
- Parameters:
fids – The std::vector of fids to subscribe to.
- Throws:
FelixClientException – if the send operation fails.
-
void subscribe(uint64_t fid) = 0
Subscribe to a given fid.
The remote endpoint is identified from felix-bus and a connection is established if not already present. The creation of sockets and network buffers is performed in the event loop thread. This function blocks the caller thread until an attempt to establish the connection has started or the subscription message is sent to the remote endpoint.
If a timeout is specified using the FELIX_CLIENT_TIMEOUT property, the function blocks until the subscription succeds or the timeout expires. A successful subscription will be either way acknowledge by the OnConnectCallback callback. A subscription is considered successful if the request was received by the remote endpoint.
- Parameters:
fid – The fid to subscribe to.
- Throws:
FelixClientException – if the send operation fails.
-
inline virtual ~FelixClientThreadExtension42()