[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Preventing multiple instances of your game from running (and activating the running copy?)



I don't think personal firewalls should care about ports explicitly opened on the loopback interface only... At least, it'd be retarded if they did.

-bob

On Aug 4, 2006, at 7:36 PM, René Dudfield wrote:

File based sockets don't work on windows.

Opening up ports for this will be foiled by personal firewalls on some
windows machines.
I think a mutex is the way to do this on windows.  Here's a recepie
that I have not tried:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474070

If you make a xplatform solution... please add it to the cookbook!
http://www.pygame.org/wiki/CookBook


On 8/5/06, Richard Jones <richardjones@xxxxxxxxxxxxxxxx> wrote:
On Saturday 05 August 2006 11:48, Bob Ippolito wrote:
> If I really had to do something like this, I'd do it with TCP on
> 127.0.0.1 plus a marker file in a user-specific directory that said
> which port to look for (which is determined at runtime by asking for
> port 0).


Or just a file-based socket? Do they work on Windows?


Richard