19 #ifndef INCLUDE_RCF_UDPCLIENTTRANSPORT_HPP 20 #define INCLUDE_RCF_UDPCLIENTTRANSPORT_HPP 22 #include <RCF/ClientTransport.hpp> 23 #include <RCF/Export.hpp> 24 #include <RCF/IpAddress.hpp> 25 #include <RCF/IpClientTransport.hpp> 29 class UdpClientTransport;
31 typedef std::shared_ptr<UdpClientTransport> UdpClientTransportPtr;
34 typedef std::shared_ptr<ReallocBuffer> ReallocBufferPtr;
36 class RCF_EXPORT UdpClientTransport :
37 public ClientTransport,
38 public IpClientTransport
44 ReallocBufferPtr mReadVecPtr;
45 ReallocBufferPtr mWriteVecPtr;
50 UdpClientTransport(
const IpAddress & ipAddress);
51 UdpClientTransport(
const UdpClientTransport &rhs);
52 ~UdpClientTransport();
62 ClientTransportCallback &clientStub,
63 unsigned int timeoutMs);
65 void disconnect(
unsigned int timeoutMs);
68 ClientTransportCallback &clientStub,
69 const std::vector<ByteBuffer> &data,
70 unsigned int timeoutMs);
73 ClientTransportCallback &clientStub,
74 ByteBuffer &byteBuffer,
75 unsigned int timeoutMs);
80 void setTransportFilters(
81 const std::vector<FilterPtr> &filters);
83 void getTransportFilters(
84 std::vector<FilterPtr> &filters);
86 int getNativeHandle()
const;
88 void setTimer(std::uint32_t timeoutMs, ClientTransportCallback *pClientStub);
90 bool supportsTransportFilters()
98 #endif // ! INCLUDE_RCF_UDPCLIENTTRANSPORT_HPP std::shared_ptr< Endpoint > EndpointPtr
Reference counted wrapper for RCF::Endpoint.
Definition: RcfFwd.hpp:118
std::unique_ptr< ClientTransport > ClientTransportUniquePtr
Unique pointer wrapper for RCF::ClientTransport.
Definition: RcfFwd.hpp:44
Definition: AmiIoHandler.hpp:24
TransportType
Describes the transport types used by a RCF connection.
Definition: Enums.hpp:34