130 #undef VLINK_PROXY_SERVER_EXPORT
131 #ifdef VLINK_PROXY_SERVER_LIBRARY_STATIC
132 #define VLINK_PROXY_SERVER_EXPORT
133 #elif defined(_WIN32) || defined(__CYGWIN__)
134 #ifdef VLINK_PROXY_SERVER_LIBRARY
135 #define VLINK_PROXY_SERVER_EXPORT __declspec(dllexport)
137 #define VLINK_PROXY_SERVER_EXPORT __declspec(dllimport)
140 #define VLINK_PROXY_SERVER_EXPORT __attribute__((visibility("default")))
149 #include "../base/message_loop.h"
209 bool reliable{
false};
210 bool enable_tcp{
false};
212 bool native_mode{
false};
214 uint32_t buf_size{0};
215 uint32_t mtu_size{0};
216 double max_packet_size{0};
220 std::string dds_impl{
"dds"};
222 bool iox_monitoring{
true};
225 uint16_t runnable_version_major{1};
226 uint16_t runnable_version_minor{0};
231 std::string bridge_filter{
232 "shm://,shm2://,intra://"};
233 bool bridge_subscribe{
false};
307 void init_shm_roudi();
311 void init_runnable();
315 void update_bridge(
const std::vector<ProxyAPI::Info>& info_list);
317 bool forward_bridge_data(
const void* data);
321 void send_control(
const void* control_data);
326 std::unique_ptr<Impl> impl_;
Serial task dispatcher with selectable queue backend and bounded timer registry.
Definition: message_loop.h:131
In-process VLink proxy daemon backed by a MessageLoop.
Definition: proxy_server.h:168
void on_end() override
Hook invoked once on the loop thread after the last task runs.
~ProxyServer() override
Destroys the ProxyServer in a deterministic shutdown order.
size_t get_max_task_count() const override
Returns the maximum queue depth.
uint32_t get_max_elapsed_time() const override
Returns the maximum allowed task execution time in milliseconds.
void on_begin() override
Hook invoked once on the loop thread before the first task runs.
void on_task_timeout(MessageLoop::Callback &&callback, uint32_t elapsed_time) override
Hook invoked when a task exceeds get_max_elapsed_time().
std::string get_token() const
Returns the authentication token issued by this server.
ProxyServer(const Config &config)
Constructs a ProxyServer and brings every proxy subsystem online.
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
Definition: macros.h:174
Client-side C++ API for connecting to a ProxyServer daemon.
#define VLINK_PROXY_SERVER_EXPORT
Definition: proxy_server.h:140
Construction-time configuration aggregate for ProxyServer.
Definition: proxy_server.h:207
std::string iox_config
Iceoryx TOML config path; empty = default.
Definition: proxy_server.h:224
std::vector< std::string > runnable_list
Ordered plugin names to load on startup.
Definition: proxy_server.h:228
std::string peer_ip
Peer unicast IP for DDS; empty = multicast.
Definition: proxy_server.h:219
std::string security_key
Security key; empty = default security slot.
Definition: proxy_server.h:217
std::string allow_ip
Local IP for DDS sockets; empty = any.
Definition: proxy_server.h:218
std::optional< ProxyAPI::Config > bridge
Definition: proxy_server.h:230
std::string runnable_prefix
Plugin library filename prefix.
Definition: proxy_server.h:227