rtpep.h

Go to the documentation of this file.
00001 /*
00002  * Endpoint abstraction
00003  *
00004  * Open Phone Abstraction Library (OPAL)
00005  *
00006  * Copyright (C) 2007 Post Increment
00007  *
00008  * The contents of this file are subject to the Mozilla Public License
00009  * Version 1.0 (the "License"); you may not use this file except in
00010  * compliance with the License. You may obtain a copy of the License at
00011  * http://www.mozilla.org/MPL/
00012  *
00013  * Software distributed under the License is distributed on an "AS IS"
00014  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00015  * the License for the specific language governing rights and limitations
00016  * under the License.
00017  *
00018  * The Original Code is Open Phone Abstraction Library.
00019  *
00020  * The Initial Developer of the Original Code is Post Increment
00021  *
00022  * Contributor(s): ______________________________________.
00023  *
00024  * $Revision: 21406 $
00025  * $Author: csoutheren $
00026  * $Date: 2008-10-22 11:59:46 +0000 (Wed, 22 Oct 2008) $
00027  */
00028 
00029 #ifndef OPAL_OPAL_RTPEP_H
00030 #define OPAL_OPAL_RTPEP_H
00031 
00032 #ifdef P_USE_PRAGMA
00033 #pragma interface
00034 #endif
00035 
00036 #include <opal/buildopts.h>
00037 
00038 #include <opal/endpoint.h>
00039 
00040 class OpalRTPEndPoint : public OpalEndPoint
00041 {
00042   PCLASSINFO(OpalRTPEndPoint, OpalEndPoint);
00043 
00048     OpalRTPEndPoint(
00049       OpalManager & manager,          
00050       const PCaselessString & prefix, 
00051       unsigned attributes             
00052     );
00053 
00056     ~OpalRTPEndPoint();
00057 
00061     virtual PBoolean AdjustInterfaceTable(PIPSocket::Address & remoteAddress,
00062                                       PIPSocket::InterfaceTable & interfaceTable);
00063 
00081     virtual PBoolean IsRTPNATEnabled(
00082       OpalConnection & connection,            
00083       const PIPSocket::Address & localAddr,   
00084       const PIPSocket::Address & peerAddr,    
00085       const PIPSocket::Address & signalAddr,  
00086       PBoolean incoming                       
00087     );
00088 
00089 #ifdef OPAL_ZRTP
00090     virtual bool GetZRTPEnabled() const;
00091 #endif
00092 
00102     virtual OpalMediaFormatList GetMediaFormats() const;
00104     
00105   protected:
00106 #ifdef OPAL_ZRTP
00107     bool zrtpEnabled;
00108 #endif
00109 
00111 };
00112 
00113 
00114 #endif // OPAL_OPAL_RTPEP_H

Generated on Mon Feb 1 00:25:54 2010 for OPAL by  doxygen 1.5.1