BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 9/D7 - testing if HTTPServer socket in use

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Eric Carlson
Guest





PostPosted: Sat Sep 10, 2005 10:06 am    Post subject: Indy 9/D7 - testing if HTTPServer socket in use Reply with quote



I'm hunting a bug which occurs when I run an app containing the same form as
a service (SvCom) as well as in an interactive app. I start the service
first. They both have a HTTP server and what I need to do is manage the
"handover" properly, in other words if the service is running and the
interactive app starts, the interactive app sends a PostMessage to the
server which calls HTTPServer.active : = false and post an ack to the
interactive version which then starts the server, When the interactve
version quits, similar reverse messages are sent to the service so the
action serving is basicaly transparent no matter what combinatoin is used,
and the rule of only 1 instance of httpserver active at once is preserved.

What I'm finding though is the service really seems to crawl when I try
this, its like just setting active := false isn't enough. I know the
messages are syncing properly from traces and I know its the http component
because if I never set any active to true I don't get this effect.

Is my scheme too simplistic? Is there a way I can ask a HTTPServer if the
port is in use before setting active true and just trapping the exception
please? Thanks...


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.