18 #ifndef INCLUDE_RCF_UDPCLIENTTRANSPORT_HPP 19 #define INCLUDE_RCF_UDPCLIENTTRANSPORT_HPP 21 #include <RCF/ClientTransport.hpp> 22 #include <RCF/Export.hpp> 23 #include <RCF/IpAddress.hpp> 24 #include <RCF/IpClientTransport.hpp> 28 class UdpClientTransport;
30 typedef std::shared_ptr<UdpClientTransport> UdpClientTransportPtr;
33 typedef std::shared_ptr<ReallocBuffer> ReallocBufferPtr;
35 class RCF_EXPORT UdpClientTransport :
36 public ClientTransport,
37 public IpClientTransport
43 ReallocBufferPtr mReadVecPtr;
44 ReallocBufferPtr mWriteVecPtr;
49 UdpClientTransport(
const IpAddress & ipAddress);
50 UdpClientTransport(
const UdpClientTransport &rhs);
51 ~UdpClientTransport();
61 ClientTransportCallback &clientStub,
62 unsigned int timeoutMs);
64 void disconnect(
unsigned int timeoutMs);
67 ClientTransportCallback &clientStub,
68 const std::vector<ByteBuffer> &data,
69 unsigned int timeoutMs);
72 ClientTransportCallback &clientStub,
73 ByteBuffer &byteBuffer,
74 unsigned int timeoutMs);
79 void setTransportFilters(
80 const std::vector<FilterPtr> &filters);
82 void getTransportFilters(
83 std::vector<FilterPtr> &filters);
85 int getNativeHandle()
const;
87 void setTimer(std::uint32_t timeoutMs, ClientTransportCallback *pClientStub);
89 bool supportsTransportFilters()
97 #endif // ! INCLUDE_RCF_UDPCLIENTTRANSPORT_HPP std::shared_ptr< Endpoint > EndpointPtr
Reference counted wrapper for RCF::Endpoint.
Definition: RcfFwd.hpp:117
std::unique_ptr< ClientTransport > ClientTransportUniquePtr
Unique pointer wrapper for RCF::ClientTransport.
Definition: RcfFwd.hpp:43
Definition: AmiIoHandler.hpp:23
TransportType
Describes the transport types used by a RCF connection.
Definition: Enums.hpp:33