diff options
| author | dknn <yoann.blein@free.fr> | 2012-07-08 20:26:03 (GMT) |
|---|---|---|
| committer | dknn <yoann.blein@free.fr> | 2012-09-22 08:55:56 (GMT) |
| commit | 4e0236b08d3914d24af32f45bc99663a73c6d83a (patch) | |
| tree | 054b63bad9da90762568ed096525099dab54de7e /Swiften/ScreenSharing/RTPSessionImpl.h | |
| parent | dc259819a687fa9a6f9007ed15b443f737c5d473 (diff) | |
| download | swift-contrib-4e0236b08d3914d24af32f45bc99663a73c6d83a.zip swift-contrib-4e0236b08d3914d24af32f45bc99663a73c6d83a.tar.bz2 | |
RTP update
Diffstat (limited to 'Swiften/ScreenSharing/RTPSessionImpl.h')
| -rw-r--r-- | Swiften/ScreenSharing/RTPSessionImpl.h | 11 |
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 @@ -15,9 +15,8 @@ #include <rtpexternaltransmitter.h> #include <rtpipv4address.h> namespace Swift { - // Temporary class class Sender : public jrtplib::RTPExternalSender { public: @@ -40,11 +39,15 @@ 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); virtual void injectData(const SafeByteArray &data); @@ -54,10 +57,14 @@ namespace Swift { static void nativeAddressToJRTPAddress(const HostAddressPort& hostAddressPort, jrtplib::RTPIPv4Address& jRTPAddress); 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; jrtplib::RTPExternalPacketInjecter *packetInjecter; |
Swift