Article View: borland.public.cppbuilder.internet.socket
Article #1598Re: Socket Service not responding? Code follows
From: Remy Lebeau (TeamB)
Date: Fri, 08 Dec 2006 01:07
Date: Fri, 08 Dec 2006 01:07
24 lines
1689 bytes
1689 bytes
"Quentin David Jones" <quentin.jones@romteck.com.spamprotect> wrote in message news:4578ba1b@newsgroups.borland.com... > The result of step 4 : > * I can install, uninstall, and start, stop the service correctlly > * But the service does not respond to the client Then you did something wrong. Sockets work fine in services. Please show your actual service code. > I am unsure about the ServiceExecute function - currently I have a loop like so: > <code starts> > while( !Terminated ) > ServiceThread->ProcessRequests(true); > <code ends> > I suspect that is not right? Get rid of the OnExecute event handler altogether. You don't need it. TService manages SCM requests just fine without it. Gambit
Technical Details
Message-ID:
<4578baa6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.n-ix.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4578ba1b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c2ba0c1ed7538b68 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: <4578ba1b@newsgroups.borland.com> Subject: Re: Socket Service not responding? Code follows Date: Thu, 7 Dec 2006 17:07:32 -0800 Lines: 26 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: <4578baa6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1165540006 75.83.34.171 (7 Dec 2006 17:06:46 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.n-ix.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail