Article View: borland.public.cppbuilder.internet.socket
Article #1937Re: TClientSocket OnRead event issues
From: Josh Arnold
Date: Thu, 14 Sep 2006 14:56
Date: Thu, 14 Sep 2006 14:56
30 lines
1860 bytes
1860 bytes
Ok, I modified my code per Hans suggestion and still nothing. The OnConnect event is fired and I can get the RemoteAddress from the socket, but the responses from the server still do not trigger any OnRead events. "Hans Galema" <notused@notused.nl> wrote in message news:45095b16@newsgroups.borland.com... > Josh Arnold wrote: > > > client->Open(); > > client->OnRead = myClientRead; > > Assign the eventhandler first: > > client->OnRead = myClientRead; > client->Open(); > > What if you assign an onconnecthandler too? > > client->OnConnect = myClientConnect; > client->OnRead = myClientRead; > client->Open(); > > Does that trigger? > > You should wait for OnConnect before sending anything. > > HAns.
Technical Details
Message-ID:
<45096c00@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4508a026@newsgroups.borland.com> <4508a3f3$2@newsgroups.borland.com> <4508aab1$1@newsgroups.borland.com> <4508b143@newsgroups.borland.com> <450949ba$1@newsgroups.borland.com> <45095b16@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6164f1b08fcaf5c2 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Josh Arnold" <jarnold@atterotech.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4508a026@newsgroups.borland.com> <4508a3f3$2@newsgroups.borland.com> <4508aab1$1@newsgroups.borland.com> <4508b143@newsgroups.borland.com> <450949ba$1@newsgroups.borland.com> <45095b16@newsgroups.borland.com> Subject: Re: TClientSocket OnRead event issues Date: Thu, 14 Sep 2006 10:56:37 -0400 Lines: 32 Organization: AtteroTech X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 70.89.2.105 Message-ID: <45096c00@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158245376 70.89.2.105 (14 Sep 2006 07:49:36 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail