summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/ScreenSharing/RTPSession.h')
-rw-r--r--Swiften/ScreenSharing/RTPSession.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Swiften/ScreenSharing/RTPSession.h b/Swiften/ScreenSharing/RTPSession.h
index 225132b..717ac17 100644
--- a/Swiften/ScreenSharing/RTPSession.h
+++ b/Swiften/ScreenSharing/RTPSession.h
@@ -10,17 +10,23 @@
#include <Swiften/Network/HostAddressPort.h>
#include <Swiften/Base/boost_bsignals.h>
+#include <boost/shared_ptr.hpp>
+
namespace Swift {
+ class UDPSocket;
+
class RTPSession {
public:
+ typedef boost::shared_ptr<RTPSession> ref;
+
enum PayloadType {
VP8 = 98,
};
public:
- RTPSession(const HostAddressPort& remotePeer, PayloadType payloadType, int frequency);
virtual ~RTPSession();
+ virtual void create(boost::shared_ptr<UDPSocket> udpSocket, const HostAddressPort& remotePeer, PayloadType payloadType, int frequency) = 0;
virtual void poll() = 0;
virtual void checkIncomingPackets() = 0;
virtual void sendPacket(const SafeByteArray& data, int timestampinc, bool marker = false) = 0;
@@ -29,10 +35,5 @@ namespace Swift {
public:
boost::signal<void (uint8_t* data, size_t len, bool marker)> onIncomingPacket;
-
- protected:
- HostAddressPort remotePeer;
- PayloadType payloadType;
- int frequency;
};
}