Article View: borland.public.cppbuilder.internet.socket
Article #1936Re: TClientSocket OnRead event issues
From: Hans Galema
Date: Thu, 14 Sep 2006 13:31
Date: Thu, 14 Sep 2006 13:31
21 lines
1642 bytes
1642 bytes
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:
<45095b16@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6164f1b08fcaf5c2 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 14 Sep 2006 15:31:03 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TClientSocket OnRead event issues References: <4508a026@newsgroups.borland.com> <4508a3f3$2@newsgroups.borland.com> <4508aab1$1@newsgroups.borland.com> <4508b143@newsgroups.borland.com> <450949ba$1@newsgroups.borland.com> In-Reply-To: <450949ba$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <45095b16@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158241046 145.98.201.248 (14 Sep 2006 06:37:26 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail