If it fails, log and exit. On connection accept and fork a child. Parent closes conversation socket, child closes listen socket. If no, log and exit. Child accepts content over socket and decrypts it.
Child parses the command number.
If the api call is inside the valid range but unsupported, it fails, logs, and exits. If the call is valid, it passes the arguments onto either the kerberos handling code or the pdb handling code. Each code finishes parsing the input, does something, and returns a value to the client. The child then continues listening for another command. There are some basic design decisions that were made regarding the server.