ipv6_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_IPV6UDPLITE_H
00020 #define CONEXUS_IPV6UDPLITE_H
00021
00022 #include <conexus/ipv6_udp.h>
00023
00024 #ifdef IPPROTO_UDPLITE
00025
00034 namespace Conexus
00035 {
00036
00037 namespace IPv6
00038 {
00039
00047 class UDPLite : public UDP
00048 {
00049 protected:
00050
00051 UDPLite( const struct in6_addr& local_if, uint16_t localport, uint16_t remoteport );
00052
00053 UDPLite( const std::string& local_if, uint16_t localport, uint16_t remoteport );
00054
00055 public:
00056
00057 typedef ConexusPointer<UDPLite> pointer;
00058
00059 CONEXUS_ENDPOINT_GENERIC_CREATE();
00060
00061 static pointer create( uint16_t localport = 0, uint16_t remoteport = 0 );
00062
00063 static pointer create( const struct in6_addr& local_if, uint16_t localport = 0, uint16_t remoteport = 0 );
00064
00065 static pointer create( const std::string& local_if, uint16_t localport = 0, uint16_t remoteport = 0 );
00066
00067 virtual ~UDPLite() throw();
00068
00070 uint16_t send_coverage();
00071
00073 uint16_t set_send_coverage(uint16_t coverage_octets);
00074
00087 uint16_t set_payload_send_coverage(uint16_t coverage_octets);
00088
00090 uint16_t recv_coverage();
00091
00099 uint16_t set_recv_coverage(uint16_t coverage_octets);
00100
00113 uint16_t set_payload_recv_coverage(uint16_t coverage_octets);
00114
00115 };
00116
00117 }
00118
00119 }
00120
00121 #endif
00122
00123 #endif