Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Using a Broadcast message on an intranet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Hart - 03 Oct 2007 16:56 GMT
Hi:

I need a way to make sure that only one instance of a program is running
on a particular intranet. I thought that some kind of Broadcast message
might do the trick, or maybe a UDP query. I'm using a WinForms
application on .NET 2.0

Can anyone help me with this?

TIA,
Martin.
Vadym Stetsiak - 03 Oct 2007 19:58 GMT
Hello, Martin!

UDP scenario has some drawbacks. UDP broadcasts may not be allowed between
intranets.
OTOH if there must be one app per intranet then broadcasts can do the job.

Also, instead of UDP broadcast you should use multicast.

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote  on Wed, 03 Oct 2007 17:56:05 +0200:

MH> Hi:

MH> I need a way to make sure that only one instance of a program is
MH> running  on a particular intranet. I thought that some kind of
MH> Broadcast message  might do the trick, or maybe a UDP query. I'm
MH> using a WinForms  application on .NET 2.0

MH> Can anyone help me with this?

MH> TIA,
MH> Martin.
Martin Hart - 04 Oct 2007 10:55 GMT
Vadym:

Do you have an example of using multicast I can see?

TIA,
Martin.

Vadym Stetsiak escribió:
> Hello, Martin!
>
[quoted text clipped - 21 lines]
>  MH> TIA,
>  MH> Martin.
Vadym Stetsiak - 04 Oct 2007 19:47 GMT
Hello, Martin!

Have a look at
http://www.codeproject.com/cs/internet/multicast.asp

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote  on Thu, 04 Oct 2007 11:55:19 +0200:

MH> Vadym:

MH> Do you have an example of using multicast I can see?

MH> TIA,
MH> Martin.

MH> Vadym Stetsiak escribió:
>> Hello, Martin!

>> UDP scenario has some drawbacks. UDP broadcasts may not be allowed
>> between  intranets.
>> OTOH if there must be one app per intranet then broadcasts can do the
>> job.

>> Also, instead of UDP broadcast you should use multicast.

>> --
>> With best regards, Vadym Stetsiak.
>> Blog: http://vadmyst.blogspot.com

>> You wrote  on Wed, 03 Oct 2007 17:56:05 +0200:

MH>>> Hi:

MH>>> I need a way to make sure that only one instance of a program is
MH>>> running  on a particular intranet. I thought that some kind of
MH>>> Broadcast message  might do the trick, or maybe a UDP query. I'm
MH>>> using a WinForms  application on .NET 2.0

MH>>> Can anyone help me with this?

MH>>> TIA,
MH>>> Martin.
Martin Hart - 05 Oct 2007 08:06 GMT
Vadym:

Perfect, thanks for your help.

Regards,
Martin.

Vadym Stetsiak escribió:
> Hello, Martin!
>
[quoted text clipped - 41 lines]
>  MH>>> TIA,
>  MH>>> Martin.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.