Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Broadcast message - how to?
Message
From
27/03/2003 07:21:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00770233
Message ID:
00770682
Views:
19
Hi Brenda.

In my VFP 6.0 SP2 appliation, I have been using some third party APIs to sent Broadcast messages over the Novell network. The idea being that if someone wanted to communicate with all the other currently signed on users of the application, they could click on Broadcast Message from the menu, type in some text, and send. The other users would receive the message in a Novell messagebox. Now we have some sites with Win2000 servers. I would like to move away from the Novell APIs totally, but provide the same functionality.

If you have a copy of MegaFox: 1002 Things You Wanted to Know About Extending VFP, we have some sample code in Chapter 9 that does this:

How do I include messaging in my application? (Example: imdemo.prg)
The easiest way to build messaging into an application is to use the Winsock control and UDP protocol. As noted above, UDP does not require a connection to be established between participating machines. Instead each machine must create a socket and set five properties, as follows:
Previous
Reply
Map
View

Click here to load this message in the networking platform