![]() |
OpenMash Documentations | Class Index | Method Index | Class Hierarchy |
TCL CLASS
ServiceManagerApplication
Implementation of a simple service manager. This is a small GUI program that lists available services, and allow users to kill the services.
init, Quit, InitArguments, InitResources, Kill, NewConnection, ServiceUpdateCallback
ServiceManagerApplication instproc init { winPath argv }
Initialized UI and create a service manager and sds session to listen to service announcement.
ServiceManagerApplication instproc Quit { }
Called when user click on the Quit button. Cleanup the session object and the manager object.
ServiceManagerApplication instproc InitArguments { options }
ServiceManagerApplication instproc InitResources { options }
Initialize default arguments. The only one we support are arguments to configure SDS session.
ServiceManagerApplication instproc Kill { host port }
Called when user wants to kill a service at $host/$port. We first establish a connection with the service, then send a QUIT command to the service.
ServiceManagerApplication instproc NewConnection { service }
Callback when a new connection is established. Nothing to see here. Move along.
ServiceManagerApplication instproc ServiceUpdateCallback { }
This is called whenever a new service announcement is received. We update the UI that shows a list of services.
search_font, init_local, user_hook, instance, name, class, toplevel
tcl/dc/servmgr/application-servmgr.tcl
Generated on Mon Apr 12 04:04:38 PDT 2004