Solved

Proadcasting Messeges

Posted on 2002-07-27
7
248 Views
Last Modified: 2013-11-13
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
Comment
Question by:sisi2000
7 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 50 total points
ID: 7182433
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
 
LVL 5

Expert Comment

by:jayeshshah
ID: 7183179
instead you can use programmes like Lantalk to broadcast messsages.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7183839
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:sisi2000
ID: 7192715
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
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7193299
Well, then, my first comment stands.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8049009
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
 

Expert Comment

by:SpideyMod
ID: 8095820
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to event 3 94
WPF - Tooltips for ComboBox items 5 69
Re-position sub-options beneath the TAB 7 88
Formula problem with Excel attachment 6 26
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question