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:
db2commexitRegisterfor a new socket connection.db2commexitRecvanddb2commexitSendto handle authentication, possibly multiple times.db2commexitUserIdentityfor a new connectiondb2commexitRecvanddb2commexitSendto handle clients SQL requests, possibly multiple times.db2commexitDeregisterto terminate socket connection.