www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - RTP/RTCP in D?

reply "M.G.Meier" <der-schoene-hans gmx.de> writes:
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 ;_;
Or is there a better, but whole different approach to this than 
the RTP protocol family?
Thx 4 answering!
Sep 05 2012
parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
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
Sep 06 2012