1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef _FASTDDS_TCP_ACCEPTOR_BASIC_
- #define _FASTDDS_TCP_ACCEPTOR_BASIC_
- #include <fastdds/rtps/transport/TCPAcceptor.h>
- #include <fastdds/rtps/transport/TCPChannelResourceBasic.h>
- namespace eprosima{
- namespace fastdds{
- namespace rtps{
- class TCPAcceptorBasic : public TCPAcceptor
- {
- public:
-
- TCPAcceptorBasic(
- asio::io_service& io_service,
- TCPTransportInterface* parent,
- const fastrtps::rtps::Locator_t& locator);
-
- TCPAcceptorBasic(
- asio::io_service& io_service,
- const std::string& interface,
- const fastrtps::rtps::Locator_t& locator);
-
- virtual ~TCPAcceptorBasic()
- {
- acceptor_.cancel();
- acceptor_.close();
- }
-
- void accept(TCPTransportInterface* parent);
- private:
- asio::ip::tcp::socket socket_;
- };
- }
- }
- }
- #endif
|