Article View: borland.public.jbuilder.java.language
Article #7330Re: ?? Prevent starting a Programm twice???
From: Joi Ellis [TeamB]
Date: Wed, 27 Jun 2001 12:39
Date: Wed, 27 Jun 2001 12:39
17 lines
1564 bytes
1564 bytes
Peter Lustig <kschnepp@web.de> wrote: > I am searching for an easy way to prevent starting the same Programm manifold on a Computer. Have the program open a ServerSocket on a specific port. If it is able to open the port, then it's the only instance of the program running. If it can't open the socket, either there are multiple copies of the program running, or something else is using the port. You can make the port user configurable if you need to, as long as the program writes the new port number someplace permanent -- Joi Ellis (TeamB) http://www.teamb.com/ No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<3b39d418_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mailReferences:
<3b398972$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5fc10420f14b88fa
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-27 05:40:36 PST
Message-ID: <3b39d418_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: ?? Prevent starting a Programm twice???
Newsgroups: borland.public.jbuilder.java.language
References: <3b398972$1_1@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 27 Jun 2001 05:39:52 -0700
X-Trace: dnews 993645592 209.46.41.66 (27 Jun 2001 05:39:52 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail