API calling sequence - Normal connect in a single agent

The most typical scenario is a client that connects to the database manager, issuing some SQL, and then disconnecting. This API calling sequence applies to communication buffer exit libraries.

In this case, a single agent, or thread handles the connection, and the following calls are made:
  1. db2commexitRegister for a new socket connection.
  2. db2commexitRecv and db2commexitSend to handle authentication, possibly multiple times.
  3. db2commexitUserIdentity for a new connection
  4. db2commexitRecv and db2commexitSend to handle clients SQL requests, possibly multiple times.
  5. db2commexitDeregister to terminate socket connection.