• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

Proadcasting Messeges

Hi
I Wont to broadcast messege as string from program on the server side to all programs on the clinets that connected to the server program .
Note:
     Server and Client Programes is made by me .

I'm using:
   visual basic6 ,
   winsock control (UDP protocol),
   windows2000 professional .

i dont need to use loop becous i dont know how meny clients are running at a time

Is it Possible ????
How???
0
sisi2000
Asked:
sisi2000
1 Solution
 
Richie_SimonettiIT OperationsCommented:
You can create an event in server program that every client can catch and act accordingly.

server: raiseevent evnt1(cancel as boolean)


clients:
dim witheevents mysvr as myserver.main

in
sub mysvr_evnt1(cancle as boolean)
    msgbox "event is broadcasting"
end sub

of course, those are not real names.
;)
0
 
jayeshshahCommented:
instead you can use programmes like Lantalk to broadcast messsages.
0
 
Richie_SimonettiIT OperationsCommented:
There is no point in use other program. Windows 2000 supports boradcasting messages (as NT) to net but the question here is the program needs to do, not the system, am i right?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
sisi2000Author Commented:
Hi Richie Simonetti
  You r right i dont need system message from NT as example
i need to send string from my server program to all my client's programs .  
0
 
Richie_SimonettiIT OperationsCommented:
Well, then, my first comment stands.
0
 
DanRollinsCommented:
Hi sisi2000,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Richie_Simonetti's comment(s) as an answer.

sisi2000, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now