summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-07-08 20:26:03 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 08:55:56 (GMT)
commit4e0236b08d3914d24af32f45bc99663a73c6d83a (patch)
tree054b63bad9da90762568ed096525099dab54de7e /Swiften/ScreenSharing/RTPSessionImpl.h
parentdc259819a687fa9a6f9007ed15b443f737c5d473 (diff)
downloadswift-contrib-4e0236b08d3914d24af32f45bc99663a73c6d83a.zip
swift-contrib-4e0236b08d3914d24af32f45bc99663a73c6d83a.tar.bz2
RTP update
Diffstat (limited to 'Swiften/ScreenSharing/RTPSessionImpl.h')
-rw-r--r--Swiften/ScreenSharing/RTPSessionImpl.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Swiften/ScreenSharing/RTPSessionImpl.h b/Swiften/ScreenSharing/RTPSessionImpl.h
index 15ca4b3..657a34a 100644
--- a/Swiften/ScreenSharing/RTPSessionImpl.h
+++ b/Swiften/ScreenSharing/RTPSessionImpl.h
@@ -16,7 +16,6 @@
#include <rtpipv4address.h>
namespace Swift {
-
// Temporary class
class Sender : public jrtplib::RTPExternalSender
{
@@ -41,9 +40,13 @@ namespace Swift {
class RTPSessionImpl : public RTPSession {
public:
- RTPSessionImpl(const HostAddressPort& remotePeer, PayloadType payloadType, int frequency);
+ typedef boost::shared_ptr<RTPSession> ref;
+
+ public:
+ RTPSessionImpl();
virtual ~RTPSessionImpl();
+ virtual void create(boost::shared_ptr<UDPSocket> udpSocket, const HostAddressPort &remotePeer, PayloadType payloadType, int frequency);
virtual void poll();
virtual void checkIncomingPackets();
virtual void sendPacket(const SafeByteArray &data, int timestampinc, bool marker = false);
@@ -55,8 +58,12 @@ namespace Swift {
private:
inline void checkError(int rtperr) const;
+ void handleDataRead(boost::shared_ptr<SafeByteArray> data);
private:
+ boost::shared_ptr<UDPSocket> udpSocket;
+ PayloadType payloadType;
+ int frequency;
jrtplib::RTPIPv4Address jRTPRemotePeer;
jrtplib::RTPSession session;
Sender sender;