Control Commands: The STAT command is used as a way for the client to confirm that the server is still responding properly.
The server must simply send a positive command response to satisfy this command. The server then expects to receive the next request from the client. The EXIT command is used by the client to request termination of the connection. The server must send a positive command response, then immediately close its end of the connection. The BasicEnrollmentManager instance created for the current client session will be discarded.
Method Commands
Upon receiving a recognized method command, the server must send a positive command response.
Parameters (if any) are sent by the client in the sequence specified in Table 1. The client sends one parameter at a time, waiting each time for the server to send a positive parameter response before continuing. If, for any parameter, the server returns a negative parameter response, the client must not send any further parameters for this command. The server in this case will immediately abandon processing of the current command and expect the client to send another command from the beginning.
Once the server has received all parameters, it must then invoke the requested method of the BasicEnrollmentManager instance for this client. See the Responses section below for more details about the expected response.
Unrecognized Commands
If the server receives any unrecognized request, meaning any command other than those listed in Table 1, it must send a negative command response. The server then expects the client to send another command request. No further action is taken by the server until it receives another command request.