Article View: borland.public.cppbuilder.internet.socket
Article #4397Re: Socket Error # 10040 Message To Long
From: Jonathan Benedicto
Date: Sat, 19 Feb 2005 23:53
Date: Sat, 19 Feb 2005 23:53
26 lines
1749 bytes
1749 bytes
Yes it is TIdUDPClient. I use Indy 9, and my compiler didn't give any
errors. I'll have to check that.
--
Jonathan
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:igjf115fn5nf81cnabj7jocf2n1vhnc4vu@4ax.com...
> Jonathan Benedicto wrote:
>
>>But, I've been encountering a exception being thrown in my code. The
>>exception is Socket Error # 10040 Message too long.
>>
>>The exception happens right at this line, where DataSize is a int.
>>
>>if(UdpClient->ReceiveBuffer(&DataSize, sizeof(int), 1000) == sizeof(int)){
>
> Is that a TIdUDPClient ?
>
> That doesn't look right.
> I see 2 versions of ReceiveBuffer()
> One with 2 arguments and one with 4.
> Neither one has a size parameter.
> (Indy 10 on-line manual)
>
>
Technical Details
Message-ID:
<4217d194$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42179afe@newsgroups.borland.com> <igjf115fn5nf81cnabj7jocf2n1vhnc4vu@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1c3545c190705d18 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: <42179afe@newsgroups.borland.com> <igjf115fn5nf81cnabj7jocf2n1vhnc4vu@4ax.com> Subject: Re: Socket Error # 10040 Message To Long Date: Sat, 19 Feb 2005 18:53:59 -0500 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 69.158.97.63 Message-ID: <4217d194$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108857236 69.158.97.63 (19 Feb 2005 15:53:56 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail