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:
db2commexitRegister
for a new socket connection.db2commexitRecv
anddb2commexitSend
to handle authentication, possibly multiple times.db2commexitUserIdentity
for a new connectiondb2commexitRecv
anddb2commexitSend
to handle clients SQL requests, possibly multiple times.db2commexitDeregister
to terminate socket connection.