🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1597

Socket Service not responding? Code follows

#1597
From: Quentin David Jones
Date: Fri, 08 Dec 2006 01:05
34 lines
1927 bytes
Greetings all,

Well, I am stuck with my socket service.
Here is how I proceeded:
1. Built a simple Chat Server and separate Chat Client based on Borland's internet chat example - that worked fine.
2. Changed the Client to send a filename and the Server to return the file date - that worked.
3. Strip all UI elements from the server - that worked

Finally -
4. Convert the Server to a service, using code from the Borland service examples.

The result of step 4 :
* I can install, uninstall, and start, stop the service correctlly
* But the service does not respond to the client

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?

So,
I will post the code below in 3 sections :
* Client
* Server application (works)
* Server service (does not respond)

I dare say it's a simple problem - at least to experts, if not to me :-)

regards


Quentin
Technical Details
Message-ID: <4578ba1b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c2ba0c1ed7538b68,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Quentin David Jones" <quentin.jones@romteck.com.spamprotect>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Socket Service not responding? Code follows
Date: Fri, 8 Dec 2006 10:05:16 +0900
Lines: 36
Organization: Romteck P/L
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 203.59.8.178
Message-ID: <4578ba1b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1165539867 203.59.8.178 (7 Dec 2006 17:04:27 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail