RTP Audio System  2.0.0
portableaddress.h
Go to the documentation of this file.
00001 /*
00002  *  $Id: portableaddress.h
00003  *
00004  * SocketAPI implementation for the sctplib.
00005  * Copyright (C) 1999-2012 by Thomas Dreibholz
00006  *
00007  * Realized in co-operation between
00008  * - Siemens AG
00009  * - University of Essen, Institute of Computer Networking Technology
00010  * - University of Applied Sciences, Muenster
00011  *
00012  * Acknowledgement
00013  * This work was partially funded by the Bundesministerium fuer Bildung und
00014  * Forschung (BMBF) of the Federal Republic of Germany (Foerderkennzeichen 01AK045).
00015  * The authors alone are responsible for the contents.
00016  *
00017  * This program is free software: you can redistribute it and/or modify
00018  * it under the terms of the GNU General Public License as published by
00019  * the Free Software Foundation, either version 3 of the License, or
00020  * (at your option) any later version.
00021 
00022  * This program is distributed in the hope that it will be useful,
00023  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00024  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00025  * GNU General Public License for more details.
00026  *
00027  * You should have received a copy of the GNU General Public License
00028  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00029  *
00030  * Contact: discussion@sctp.de
00031  *          dreibh@iem.uni-due.de
00032  *          tuexen@fh-muenster.de
00033  *
00034  * Purpose: This file implements a portable address
00035  *
00036  */
00037 
00038 #ifndef PORTABLEADDRESS_H
00039 #define PORTABLEADDRESS_H
00040 
00041 
00042 #include "tdsystem.h"
00043 
00044 
00045 
00056 class PortableAddress
00057 {
00058    // ====== Comparision operators ==========================================
00059    public:
00063    int operator==(const PortableAddress& address) const;
00064 
00068    int operator!=(const PortableAddress& address) const;
00069 
00073    int operator<(const PortableAddress& address) const;
00074 
00078    int operator<=(const PortableAddress& address) const;
00079 
00083    int operator>(const PortableAddress& address) const;
00084 
00088    int operator>=(const PortableAddress& address) const;
00089 
00090 
00091    // ====== Reset ==========================================================
00095    inline void reset();
00096 
00097 
00098    // ====== Address data ===================================================
00099    public:
00104    card16 Host[8];
00105 
00109    card16 Port;
00110 };
00111 
00112 
00113 #include "portableaddress.icc"
00114 
00115 
00116 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines