The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Just One Instance Please. Cool Trick

0 replies on 1 page.

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 0 replies 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 1:20 PM
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

Topic: RSS - it's still the web dude Previous Topic   Next Topic Topic: Longhorn uber alles?

Sponsored Links



Google
  Web Artima.com   

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