Article View: borland.public.cppbuilder.internet.socket
Article #487Re: TIdTCPClient write?
From: Remy Lebeau (TeamB)
Date: Tue, 04 Mar 2008 22:14
Date: Tue, 04 Mar 2008 22:14
35 lines
2030 bytes
2030 bytes
"Mike Ruskai" <BUTthannydI@DONTearthlinkLIKE.netSPAM> wrote in message news:2qgrs3lmhrosjunbn1hblt6r9ajlbd4jjr@4ax.com... > I think I've mostly got a handle on socket reading, but now > I can't seem to get any data out over the socket. Then you are probably not using it correctly. Please show your actual code. > I've tried Write() and WriteDirect() Write() will work just fine. Don't call WriteDirect() directly. > (with TByteDynArray for the data) Any particular reason why you keep using TByteDynArray instead of Indy's own TIdBytes type? > with WriteBufferFlush() and WriteBufferCancel() (the latter before the > write). WriteBufferFlush() does not do anything unless WriteBufferOpen() was called first. > Packet capture shows nothing being sent. Then you are not writing anything to begin with. > How can it be this difficult to simply send data over a socket? Because you are using Indy the wrong way, most likely. Again, please show your actual code. Gambit
Technical Details
Message-ID:
<47cdc997$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<2qgrs3lmhrosjunbn1hblt6r9ajlbd4jjr@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8cace09b6656293e X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <2qgrs3lmhrosjunbn1hblt6r9ajlbd4jjr@4ax.com> Subject: Re: TIdTCPClient write? Date: Tue, 4 Mar 2008 14:14:04 -0800 Lines: 37 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <47cdc997$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1204668823 207.178.157.90 (4 Mar 2008 14:13:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail