Article View: borland.public.cppbuilder.internet.socket
Article #4400Re: Socket Error # 10040 Message To Long
From: Chad Z. Hower aka Kudzu
Date: Tue, 22 Feb 2005 14:10
Date: Tue, 22 Feb 2005 14:10
20 lines
1756 bytes
1756 bytes
"Jonathan Benedicto" <incorrect@no.server> wrote in
news:4217d1de@newsgroups.borland.com:
> Do you think it is caused by my reading just a int-sized chunk of the
> datagram ? Because I don't know how long the datagram is going to be. That
> first int is a length.
Yes. You need to limit yourself. Windows has a max of 32k, some routers less.
To be ultra safe, stick to 1k. Ive found in practice that 8k works pretty
reliably though.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Want more Indy stuff? Try the Atozed Indy Portal at
http://www.atozedsoftware.com/
* More Free Demos
* Free Articles
* Extra Support
Technical Details
Message-ID:
<Xns96055D57AB613cpub@127.0.0.1>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!KudzuReferences:
<42179afe@newsgroups.borland.com> <4217d04f$1@newsgroups.borland.com> <4217d1de@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 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Socket Error # 10040 Message To Long From: "Chad Z. Hower aka Kudzu" <cpub@hower.org> References: <42179afe@newsgroups.borland.com> <4217d04f$1@newsgroups.borland.com> <4217d1de@newsgroups.borland.com> Organization: Atozed Software Message-ID: <Xns96055D57AB613cpub@127.0.0.1> User-Agent: Xnews/5.04.25 via ELKNews 1.1 X-Face: '-Al!t=o!k-s4*bktmv/YpA=fm9"8xdyO,t[~R2]W/c%[qF:])&(mBp$XI^d:Tmlr&&>S;aBs0DIl;0Fv|\3fb(#vsf)1;[;m0x&<RC/,7]DSa Lines: 19 Date: Tue, 22 Feb 2005 09:10:33 -0500 NNTP-Posting-Host: 216.80.151.41 X-Trace: newsgroups.borland.com 1109081435 216.80.151.41 (22 Feb 2005 06:10:35 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!Kudzu