🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: tcp vs udp

#4569
From: Remy Lebeau (TeamB)
Date: Wed, 26 Jan 2005 22:49
18 lines
1601 bytes
"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: <41f81de7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41f8176c$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41f8176c$1@newsgroups.borland.com>
Subject: Re: tcp vs udp
Date: Wed, 26 Jan 2005 14:49:43 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41f81de7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106779623 68.69.17.41 (26 Jan 2005 14:47:03 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail