OPAL  Version 3.14.3
rfc4103.h
Go to the documentation of this file.
1 /*
2  * rfc4103.h
3  *
4  * Implementation of RFC 4103 RTP Payload for Text Conversation
5  *
6  * Open Phone Abstraction Library (OPAL)
7  *
8  * Copyright (c) 2008 Post Increment
9  *
10  * The contents of this file are subject to the Mozilla Public License
11  * Version 1.0 (the "License"); you may not use this file except in
12  * compliance with the License. You may obtain a copy of the License at
13  * http://www.mozilla.org/MPL/
14  *
15  * Software distributed under the License is distributed on an "AS IS"
16  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17  * the License for the specific language governing rights and limitations
18  * under the License.
19  *
20  * The Original Code is Open Phone Abstraction Library.
21  *
22  * The Initial Developer of the Original Code is Post Increment
23  *
24  * Contributor(s): ______________________________________.
25  *
26  * $Revision: 29536 $
27  * $Author: rjongbloed $
28  * $Date: 2013-04-19 18:55:15 +1000 (Fri, 19 Apr 2013) $
29  */
30 
31 #ifndef OPAL_IM_RFC4103_H
32 #define OPAL_IM_RFC4103_H
33 
34 #include <opal_config.h>
35 
36 #if OPAL_HAS_RFC4103
37 
38 #include <ptclib/url.h>
39 
40 #include <opal/mediastrm.h>
41 #include <rtp/rtp.h>
42 
43 
44 class T140String;
45 
46 
50 {
51  public:
53  OpalConnection & conn,
55  unsigned sessionID,
56  bool isSource
57  );
58 
59  virtual PBoolean IsSynchronous() const { return false; }
60  virtual PBoolean RequiresPatchThread() const { return false; }
61 
62  bool ReadPacket(RTP_DataFrame & packet);
63  bool WritePacket(RTP_DataFrame & packet);
64 
65  protected:
66  virtual void InternalClose() { }
67 };
68 
69 
70 #endif // OPAL_HAS_RFC4103
71 
72 #endif // OPAL_IM_RFC4103_H