Article View: borland.public.cppbuilder.internet.socket
Article #3854Re: TServerSocket and Windows Services
From: Remy Lebeau (TeamB)
Date: Tue, 07 Jun 2005 20:27
Date: Tue, 07 Jun 2005 20:27
19 lines
1658 bytes
1658 bytes
"Naresh Chandran" <naresh@sentori.com> wrote in message news:42a5f86a$1@newsgroups.borland.com... > Currently, I am trying to convert this application into a Windows > Service. <snip> > none of the TServerSocket events are triggered when a client > connects, writes to the connection or disconnects Borland's TService architecture is multi-threaded. Non-blocking sockets require a message queue, but individual TService instances do not have a message queue by default. You would need to either 1) use the TService::OnExecute event to run your own message queue (I would not recommend this), or 2) use your TServerSocket in blocking mode instead so that a message queue is no longer needed. Gambit
Technical Details
Message-ID:
<42a60302$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<42a5f86a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b2d9cba8cb83bb9c 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: <42a5f86a$1@newsgroups.borland.com> Subject: Re: TServerSocket and Windows Services Date: Tue, 7 Jun 2005 13:27:17 -0700 Lines: 21 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: 68.69.17.41 Message-ID: <42a60302$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118176002 68.69.17.41 (7 Jun 2005 13:26:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail