3.2 Server Details (Local/Stub Side of DSLR Connection)

After CreateService has been called by a client, the server side of the DSLR is responsible for receiving dispatcher requests, executing the function calls for those requests, and sending dispatcher responses with the result of the function calls for that client. The server stops processing its requests when a client has called DeleteService.

The DSLR server has the following states, as illustrated in the following figure:

DSLR server state diagram

Figure 6: DSLR server state diagram

Start state: The server is ready to instantiate services. The following message is processed in this state:

  • CreateService

Accepting Messages: The server has received the CreateService message to instantiate the service, and is ready to accept requests on that service. The following events are processed in this state:

  • DSLR One-Way Event

  • DSLR Two-Way Request

  • DeleteService

Processing Message: The server is executing a one-way event or two-way request received from the client, including sending the response for two-way requests. The following event is processed in this state:

  • Message Processed

Finish state: The server has received the DeleteService message and cleaned up the remote service. No events are processed in this state.