🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: UDP WaitForData

#5733
From: Jason Castillo
Date: Tue, 15 Jun 2004 20:55
29 lines
2251 bytes
Since I got no response here, I did a Google search for 'C++ Builder UDP
component'.  I tried 2 different components - one was an ActiveX from Dart,
the other was a VCL from nsoftware.  Didn't have much luck with the Dart
component and its usage was a bit ugly.  The IPWorks component was good, but
much of our existing socket code does not use Callback functions.  I took a
2nd look at the Builder 6 component pallet and saw TIdUDPClient under the
Indy Clients tab.  Initial testing has shown this to work very well with our
current architecture.  We plan to use this component for UDP comm moving
forward.

Jason

"Jason Castillo" <jason.castillo@kimley-horn.com> wrote in message
news:40c64360$1@newsgroups.borland.com...
> I have a very simple app that is testing the TUDPSocket Component.  It
> appears to establish a connection with a server that simply echoes the
data
> I send back.  I can make successful calls to SendBuf and RecieveBuf in
> bmBlocking mode.  The problem occurs when I check the socket with
> WaitForData(timeout).  My final application will be communicating with a
> device that may not always respond.  This method is consistently returning
> false, when I know that I the socket should be ready to read/write.
> Does anyone have a suggestion or a good way to implement a blocking UDP
> connection?
>
> Mucho Thanks,
> Jason Castillo
>
>
Technical Details
Message-ID: <40cf6237$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40c64360$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11508e,f1b144012c0c46f0,start
X-Google-Attributes: gid11508e,public
From: "Jason Castillo" <jason.castillo@kimley-horn.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <40c64360$1@newsgroups.borland.com>
Subject: Re: UDP WaitForData
Date: Tue, 15 Jun 2004 13:55:21 -0700
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 64.251.232.17
Message-ID: <40cf6237$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087332919 64.251.232.17 (15 Jun 2004 13:55:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail