Once the socket to be used for communication is established, the Cyc API server goes into a loop performing the following steps in order until the connection is closed :
- input one API request from the socket
- evaluate the request
- output the result to the socket
The protocol of each step is described below for the ASCII communication mode.