conexus logo

ipv4_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_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

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