DTL_CIP_CONNECTION_CLOSE comments
DTL_CIP_CONNECTION_CLOSE closes a connection between an application and a CIP object. Calling DTL_UNINIT or exiting the application will also cause the connection to be terminated, but will not clean up the connection properly. (The CIP object and any bridge nodes will be left to time out the connection on their own.)
After the connection has been successfully closed and cleaned up, the application's DTL_CIP_CONNECTION_STATUS_PROC for the connection will be called with a status of DTL_CONN_CLOSED. See DTL_CIP_CONNECTION_STATUS_PROC. If for some reason the connection cannot be successfully closed, then the status returned with the DTL_CIP_CONNECTION_STATUS_PROC call will be DTL_CONN_ERROR. (In this case, the connection eventually times out.)
Provide Feedback