Article View: borland.public.cppbuilder.internet.socket
Article #1532Re: TClientSocket in consolle applications
From: Remy Lebeau (TeamB)
Date: Mon, 25 Dec 2006 20:49
Date: Mon, 25 Dec 2006 20:49
17 lines
1426 bytes
1426 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com... > You might be able to have your connect function spawn a new thread > to pump messages (create a hidden window to receive messages). That will not work. A thread cannot receive messages that belong to another thread. The TClientSocket belongs to whatever thread actually creates it, so only that thread can receive the messages. > Or set it up to work in blocking mode. That would be the way to go. Gambit
Technical Details
Message-ID:
<45903968$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<458d3f0d@newsgroups.borland.com> <rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dab0ff5b2d1109 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <458d3f0d@newsgroups.borland.com> <rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com> Subject: Re: TClientSocket in consolle applications Date: Mon, 25 Dec 2006 12:49:35 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45903968$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1167079784 75.83.34.171 (25 Dec 2006 12:49:44 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail