The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Just One Instance Please. Cool Trick

1 reply on 1 page. Most recent reply: Mar 19, 2004 9:39 AM by Secundino Garcia

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Just One Instance Please. Cool Trick Posted: Nov 20, 2003 11:20 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Just One Instance Please. Cool Trick
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement
Just heard about this trick. It's a solution for the how do you limit a program to just one running instance. The solution is that you open a client socket connection to some port, if you connect, then you exit. Otherwise you open a server socket on the same port. See how it works? Cool huh?

Read: Just One Instance Please. Cool Trick


Secundino Garcia

Posts: 2
Nickname: sgarcia
Registered: Mar, 2004

Re: Just One Instance Please. Cool Trick Posted: Mar 19, 2004 9:39 AM
Reply to this message Reply
Hi!
Do you have a little example?

Flat View: This topic has 1 reply on 1 page
Topic: Encapsulation Previous Topic   Next Topic Topic: Release Cycles and Pricing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use