🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4570

Re: tcp vs udp

#4570
From: Jonathan Benedicto
Date: Wed, 26 Jan 2005 23:24
40 lines
2418 bytes
In the current implementation of my app, the data is received in compressed 
612 byte packets, and then a thread tkaes it and splits it into 100 byte 
packets for sending over a connection.

I had thought that the splitter would help with a dial-up connection, but 
now I think that I should take it out.

I really only want good quality with extremely low latency, and so I don't 
know that I can have too many packets lost, maybe I should reduce the audio 
sample size and use UDP.

-- 
Jonathan

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:41f81de7@newsgroups.borland.com...
>
> "Jonathan Benedicto" <incorrect@no.server> wrote in message
> news:41f8176c$1@newsgroups.borland.com...
>
>> I'm trying to stream compressed audio between computers.
>>
>> Does TCP have too much latency to make be able to do
>> it well ? Should I use UDP instead ?
>
> That depends on what you are trying to accomplish in the first place. 
> Since
> the data is being compressed, use TCP if data integrity is important, 
> since
> UDP can deliver data in different ordering than it was sent and also data
> may be lost altogether.  On the other hand, if the data is being comressed
> small enough that blocks of audio can fit into individual UDP packets
> (usually 8K max), and you don't care if packets get lost, then UDP is 
> fine.
>
>
> Gambit
>
>
> 
Technical Details
Message-ID: <41f826bd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!demon!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41f8176c$1@newsgroups.borland.com> <41f81de7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1e2910f6574170fd
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41f8176c$1@newsgroups.borland.com> <41f81de7@newsgroups.borland.com>
Subject: Re: tcp vs udp
Date: Wed, 26 Jan 2005 18:24:44 -0500
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.158.110.205
Message-ID: <41f826bd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106781885 69.158.110.205 (26 Jan 2005 15:24:45 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!demon!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail