Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using COM
Message
From
23/06/1999 00:14:36
 
 
To
22/06/1999 06:04:35
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00232373
Message ID:
00232824
Views:
13
>Hi All,
>
>The application I'm currently working on needs to update all clients in real time. That is, if changes are made to any data these need to be broadcast to all clients. Does anyone know how to expose a client's method and how to call that method, bearing in mind the client could be located anywhere.
>
>I was hoping that COM would help me but the control seems to be in one direction, from client to server and not vice-versa.
>

You can register the "client" as an object with the "server" to give the server access to the clients methods. You don't need COM to do this. (Actually, COM introduces a few new issues...)

But you might be better off using a sort of mediator- a third object that knows about all objects that want to be notified when an event happens. That way, each object that can cause the event only neds to know about the mediator, and only needs to notify one party when he makes changes. The mediator is then responsible for notifying all of the other registered objects. Check out Steven Black's article on this at http://www.stevenblack.com/PTN-Mediator.ASP

>Also, I am reluctant to use timers.

Boy, me too.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform