RTP/RTCP in D?

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Sep 6 14:57:44 PDT 2012


On 05-Sep-12 18:33, M.G.Meier wrote:> Hi all,
 >
 > is there a convenient way (bindings?) to use RTP/RTCP protocols from
 > within a D project? I'm developing a client/server application where
 > only tiny bursts of data (i.e. messages) have to be exchanged between
 > srv and clt, and TCP sockets don't do the trick ;_;

AFIAK RTP doesn't handle messages at all. It's about getting real-time 
streams with proper QoS. So I'd say it's plain unusable for short burst 
messaging.

 > Or is there a better, but whole different approach to this than the RTP
 > protocol family?

I'd look at plain UDP datagrams it's as fast as it gets in sending 
messages. The advnatage is - you'd get only the whole message (no 
pieces) and no overhead compared to TCP (connection state, buffering 
etc.). But it's very simple and doesn't check for lost packets (messages).

If you need reliability there is an RUDP aka reliable datagram protocol 
though I don't think it's supported on all OSes.

 > Thx 4 answering!
no problem ;)

-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list