Terminating the server

To terminate the server:

  1. Remove the first reference from the service definition.
      myServiceDefinition->RemoveReference () ;
  2. Destroy the TRequestReceiverStream instance or instances.
    Once the request receiver stream is destroyed, clients that try to communicate with the server receive an exception.
NOTE Deleting the service definition alone does not terminate a server. When you delete a service definition, no new clients can connect to that service, but existing clients continue their connection until the last TRequestReceiverStream is destroyed.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker