Defines what actions are to be performed prior to a client disconnecting from TRS.
TRS_RETCODE TRS_PUBLIC ue_disconnect (status, serviceName, serviceNameLength, applicationName, applicationNameLength, userId, pUserIdLength)
TRS_STATUS |
status; |
const char* |
serviceName; |
const int |
serviceNameLength; |
const char* |
applicationName; |
const int |
applicationNameLength |
ccnst char* |
userId; |
int* |
pUserIdLength; |
Value |
Description |
---|---|
eTRS_FAIL |
Indicates failure within ue_disconnect( ) |
eTRS_SUCCEED |
Indicates success within ue_disconnect( ) |
eTRS_NOTIMPLEMENTED |
Indicates stubbed out implementation of ue_disconnect( ) |
The state of the Service Library invoking ue_disconnect( ). Table D-4 describes the legal value for status:
Value |
Description |
---|---|
eGood_ |
Always used |
eObjNotFound_ |
Reserved for future use |
eObjNotValue_ |
Reserved f or future use |
eFatal_ |
Reserved for future use |
Name of the service to which the connection was made.
Length of the serviceName.
Name of the application from which the connection was made.
Length of the applicationName.
ID of the connecting user.
Pointer to length of userId.
See syntax.
ue_disconnect allows you to perform varying functions related to disconnects. Although pUserIdLength is defined as a pointer, its modification is meaningless with this release.
WARNING! By granting control to this user exit, DirectConnect has temporarily forfeited the management of Open Server threads and DirectConnect cannot ensure against ue_disconnect monopolizing execution, nor ue_disconnect’s ability to create a deadlock. Please use precautions to prevent this.
See a sample implementation at the following location:
/<install_dir>/DC-15_0/servers/sample/trs/ue/ue_connect.cpp