Article View: borland.public.cppbuilder.internet.socket
Article #4393Re: Socket Error # 10040 Message To Long
From: Bob Gonder
Date: Sat, 19 Feb 2005 23:44
Date: Sat, 19 Feb 2005 23:44
16 lines
1437 bytes
1437 bytes
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:
<igjf115fn5nf81cnabj7jocf2n1vhnc4vu@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<42179afe@newsgroups.borland.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: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Socket Error # 10040 Message To Long Date: Sat, 19 Feb 2005 15:44:40 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <igjf115fn5nf81cnabj7jocf2n1vhnc4vu@4ax.com> References: <42179afe@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.146.21 X-Trace: newsgroups.borland.com 1108856676 67.77.146.21 (19 Feb 2005 15:44:36 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail