ipv4_udplite.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef CONEXUS_IPV4UDPLITE_H
00020 #define CONEXUS_IPV4UDPLITE_H
00021
00022 #include <conexus/ipv4_udp.h>
00023
00024 #ifdef IPPROTO_UDPLITE
00025
00034 namespace Conexus
00035 {
00036
00037 namespace IPv4
00038 {
00039
00070 class UDPLite : public UDP
00071 {
00072 protected:
00073
00074 UDPLite( uint32_t local_if, uint16_t localport, uint16_t remoteport );
00075
00076 UDPLite( const std::string& local_if, uint16_t localport, uint16_t remoteport );
00077
00078 public:
00079
00080 typedef ConexusPointer<UDPLite> pointer;
00081
00082 CONEXUS_ENDPOINT_GENERIC_CREATE();
00083
00084 static pointer create( uint16_t localport = 0, uint16_t remoteport = 0 );
00085
00086 static pointer create( uint32_t local_if, uint16_t localport, uint16_t remoteport );
00087
00088 static pointer create( const std::string& local_if, uint16_t localport = 0, uint16_t remoteport = 0 );
00089
00090 virtual ~UDPLite() throw();
00091
00093 uint16_t send_coverage();
00094
00096 uint16_t set_send_coverage(uint16_t coverage_octets);
00097
00110 uint16_t set_payload_send_coverage(uint16_t coverage_octets);
00111
00113 uint16_t recv_coverage();
00114
00122 uint16_t set_recv_coverage(uint16_t coverage_octets);
00123
00136 uint16_t set_payload_recv_coverage(uint16_t coverage_octets);
00137
00138 };
00139
00140 }
00141
00142 }
00143
00144 #endif
00145
00146 #endif