OpenDDS  Snapshot(2023/04/28-20:55)
UdpSendStrategy.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_TRANSPORT_UDP_UDPSENDSTRATEGY_H
9 #define OPENDDS_DCPS_TRANSPORT_UDP_UDPSENDSTRATEGY_H
10 
11 #include "Udp_Export.h"
12 
14 
16 
17 namespace OpenDDS {
18 namespace DCPS {
19 
20 class UdpDataLink;
21 class UdpInst;
22 typedef RcHandle<UdpDataLink> UdpDataLink_rch;
23 
25  : public TransportSendStrategy {
26 public:
28 
29  virtual void stop_i();
30 
31 protected:
32  virtual ssize_t send_bytes_i(const iovec iov[], int n);
33 
34  virtual size_t max_message_size() const
35  {
36  return UDP_MAX_MESSAGE_SIZE;
37  }
38 
39 private:
41 };
42 
43 } // namespace DCPS
44 } // namespace OpenDDS
45 
47 
48 #endif /* DCPS_UDPSENDSTRATEGY_H */
RcHandle< UdpDataLink > UdpDataLink_rch
int ssize_t
virtual size_t max_message_size() const
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define OpenDDS_Udp_Export
Definition: Udp_Export.h:24
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28