UdpSendStrategy.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef DCPS_UDPSENDSTRATEGY_H
00009 #define DCPS_UDPSENDSTRATEGY_H
00010 
00011 #include "Udp_Export.h"
00012 
00013 #include "dds/DCPS/transport/framework/TransportSendStrategy.h"
00014 
00015 namespace OpenDDS {
00016 namespace DCPS {
00017 
00018 class UdpDataLink;
00019 
00020 class OpenDDS_Udp_Export UdpSendStrategy
00021   : public TransportSendStrategy {
00022 public:
00023   explicit UdpSendStrategy(UdpDataLink* link);
00024 
00025   virtual void stop_i();
00026 
00027 protected:
00028   virtual ssize_t send_bytes_i(const iovec iov[], int n);
00029 
00030   virtual size_t max_message_size() const
00031   {
00032     return UDP_MAX_MESSAGE_SIZE;
00033   }
00034 
00035 private:
00036   UdpDataLink* link_;
00037 };
00038 
00039 } // namespace DCPS
00040 } // namespace OpenDDS
00041 
00042 #endif /* DCPS_UDPSENDSTRATEGY_H */

Generated on Fri Feb 12 20:05:28 2016 for OpenDDS by  doxygen 1.4.7