Article View: borland.public.cppbuilder.internet.socket
Article #4572Re: tcp vs udp
From: Jonathan Benedicto
Date: Thu, 27 Jan 2005 00:14
Date: Thu, 27 Jan 2005 00:14
51 lines
2816 bytes
2816 bytes
What is a good UDP component ? I've been using TClientSocket and TServerSocket for TCP. -- Jonathan "Jonathan Benedicto" <incorrect@no.server> wrote in message news:41f826bd@newsgroups.borland.com... > 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:
<41f83265$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41f8176c$1@newsgroups.borland.com> <41f81de7@newsgroups.borland.com> <41f826bd@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> <41f826bd@newsgroups.borland.com> Subject: Re: tcp vs udp Date: Wed, 26 Jan 2005 19:14:33 -0500 Lines: 53 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; Response NNTP-Posting-Host: 69.158.110.205 Message-ID: <41f83265$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106784869 69.158.110.205 (26 Jan 2005 16:14:29 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail