conexus logo

ipv6_udplite.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2009 by Rick L. Vinyard, Jr.                            *
00003  *   rvinyard@cs.nmsu.edu                                                  *
00004  *                                                                         *
00005  *   This file is part of the conexus library.                             *
00006  *                                                                         *
00007  *   The conexus library is free software; you can redistribute it and/or  *
00008  *   modify it under the terms of the GNU General Public License           *
00009  *   version 3 as published by the Free Software Foundation.               *
00010  *                                                                         *
00011  *   The conexus library is distributed in the hope that it will be        *
00012  *   useful, but WITHOUT ANY WARRANTY; without even the implied warranty   *
00013  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00014  *   General Public License for more details.                              *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this software. If not see <http://www.gnu.org/licenses/>.  *
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

Generated on Wed Jul 8 15:50:07 2009 for conexus by doxygen 1.5.8