OpenTP1 Version 7 Programming Reference C Language
dc_rap_disconnect - Release a connection with a RAP-processing listener
Format
ANSI C, C++
#include <dcrap.h> int dc_rap_disconnect(DCRAP_SV_ID sv_id, DCLONG rflags) |
K&R C
#include <dcrap.h> int dc_rap_connect(sv_id, rflags) DCRAP_SV_ID sv_id; DCLONG rflags; |
Description
The function dc_rap_disconnect releases a connection established between a RAP-processing listener and a RAP-processing client.
Arguments whose values are set in the UAP
sv_id
Specify the service ID that was received for the function dc_rap_connect.
rflags
Specify DCNOFLAGS.
Return values
Return value | Return value (numeric) | Explanation |
---|---|---|
DC_OK | 0 | Normal termination. The connection with the RAP-processing listener was released. |
DCRAPER_PARAM | -5501 | The argument is invalid. Possible causes are as follows:
|
DCRAPER_PROTO | -5502 | The protocol is invalid. Possible causes of the error are as follows:
|
DCRAPER_NOMEMORY | -5503 | The memory became insufficient. |
DCRAPER_NETDOWN | -5505 | A network error occurred during communication with the RAP-processing listener. |
DCRAPER_TIMEDOUT | -5506 | A timeout occurred during communication with the RAP-processing listener. |
DCRAPER_SHUTDOWN | -5521 | The RAP-processing listener is being terminated. |
DCRAPER_NOCONTINUE | -5522 | An error which prevents continuation of processing occurred. Possible causes of the error are as follows:
|
DCRAPER_SYSCALL | -5523 | An unexpected error occurred during system call. |
Note
If the function dc_rap_disconnect returns with an error (returns with a value other than DCRAPER_PARAM or DCRAPER_PROTO), the connection with the RAP-processing listener was released. The error code acquired by the UAP trace is as follows:
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.