3 #ifndef VISR_LIBRCL_UDP_SENDER_HPP_INCLUDED 4 #define VISR_LIBRCL_UDP_SENDER_HPP_INCLUDED 15 #include <boost/array.hpp> 16 #include <boost/asio/io_service.hpp> 17 #include <boost/asio/ip/udp.hpp> 18 #include <boost/thread/thread.hpp> 43 static std::size_t
const cMaxMessageLength = 8192;
61 std::string
const & receiverAddress,
62 std::size_t receiverPort,
63 Mode mode, boost::asio::io_service* externalIoService =
nullptr );
73 void process()
override;
80 void handleSentData(
const boost::system::error_code& error,
81 std::size_t numBytesTransferred );
88 boost::asio::io_service* mIoService;
94 std::unique_ptr<boost::asio::io_service> mIoServiceInstance;
96 std::unique_ptr<boost::asio::ip::udp::socket> mSocket;
98 boost::asio::ip::udp::endpoint mRemoteEndpoint;
102 std::unique_ptr<boost::asio::io_service::work> mIoServiceWork;
108 std::deque< pml::StringParameter > mInternalMessageBuffer;
110 std::unique_ptr< boost::thread > mServiceThread;
120 #endif // #ifndef VISR_LIBRCL_UDP_SENDER_HPP_INCLUDED Mode
Definition: udp_sender.hpp:36
Definition: options.cpp:10
Definition: atomic_component.hpp:21
Definition: udp_sender.hpp:33
Definition: composite_component.hpp:29
Definition: signal_flow_context.hpp:15