3.1.4.1.1 Methods with Prerequisites
Except for the following specified methods, there is no client-specific processing for the methods in this protocol. The methods are invoked by an application, and any information or status MUST be returned back to the application.
The exceptions to this rule are the following methods, which have the following specific sequencing behaviors:
To open and close a session, the following MUST be done in sequence:
The client establishes a session with the server using INtmsSession1::OpenNtmsServerSessionA (ASCII) or INtmsSession1::OpenNtmsServerSessionW (Unicode).
The client closes the session with INtmsSession1::CloseNtmsSession when it no longer requires the interface's functionality.
To receive notifications from the server, the following MUST be done in sequence:
The client calls INtmsNotifySink::ConnectCallback to register with server and request notifications.
The server calls INtmsNotifySink::OnNotify to send notifications to those clients that have requested them. The client can decide what it wants to do with that notification.
The client calls INtmsNotifySink::ReleaseCallback to deregister from the server and receive no further notifications.