OPAL  Version 3.18.8
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 
27 #ifndef OPAL_IM_RFC4103_H
28 #define OPAL_IM_RFC4103_H
29 
30 #include <opal_config.h>
31 
32 #if OPAL_HAS_RFC4103
33 
34 #include <ptclib/url.h>
35 
36 #include <opal/mediastrm.h>
37 #include <rtp/rtp.h>
38 
39 
40 class T140String;
41 
42 
46 {
47  public:
49  OpalConnection & conn,
50  const OpalMediaFormat & mediaFormat,
51  unsigned sessionID,
52  bool isSource
53  );
54 
55  virtual PBoolean IsSynchronous() const { return false; }
56  virtual PBoolean RequiresPatchThread() const { return false; }
57 
58  bool ReadPacket(RTP_DataFrame & packet);
59  bool WritePacket(RTP_DataFrame & packet);
60 
61  protected:
62  virtual void InternalClose() { }
63 };
64 
65 
66 #endif // OPAL_HAS_RFC4103
67 
68 #endif // OPAL_IM_RFC4103_H
virtual PBoolean IsSynchronous() const
Definition: rfc4103.h:55
virtual PBoolean RequiresPatchThread() const
Definition: rfc4103.h:56
Definition: rtp.h:540
OpalT140MediaStream(OpalConnection &conn, const OpalMediaFormat &mediaFormat, unsigned sessionID, bool isSource)
Definition: mediafmt.h:806
Definition: rfc4103.h:45
Definition: mediastrm.h:110
Definition: connection.h:415
Definition: t140.h:36
bool WritePacket(RTP_DataFrame &packet)
bool ReadPacket(RTP_DataFrame &packet)
virtual void InternalClose()
Definition: rfc4103.h:62