OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P
#include <dcvclt.h> DCLONG dc_clt_accept_notification_s( HWND hWnd, char *defpath, char *inf, DCLONG *inf_len, unsigned short port, DCLONG timeout, char *hostname, char *nodeid, DCLONG flags)
#include <dcvclt.h> DCLONG dc_clt_accept_notification( char *inf, DCLONG *inf_len, unsigned short port, DCLONG timeout, char *hostname, char *nodeid, DCLONG flags)
#include <dcvclt.h> DCLONG dc_clt_accept_notification_s( HWND hWnd, char CLTFAR *defpath, char CLTFAR *inf, DCLONG CLTFAR *inf_len, unsigned short port, DCLONG timeout, char CLTFAR *hostname, char CLTFAR *nodeid, DCLONG flags)
#include <dcvclt.h> DCLONG dc_clt_accept_notification( char CLTFAR *inf, DCLONG CLTFAR *inf_len, unsigned short port, DCLONG timeout, char CLTFAR *hostname, char CLTFAR *nodeid, DCLONG flags)
This function waits for the message reported by the dc_rpc_cltsend function executed on the server side. This function stops waiting for the message if a timeout occurs before receiving the message. The timeout is specified by the timeout argument. On reception of the message, this function returns the return value, received message, host name of the message-originating server, and node identifier of the message-originating server, and control returns to the CUP. Before issuing this function, you do not need to issue the dc_clt_cltin_s and dc_rpc_open_s functions.
Return Value | Value (decimal) | Meaning |
---|---|---|
DC_OK | 0 | Normal termination |
DCCLTER_INVALID_ARGS | -2501 | Invalid argument |
DCCLTER_FATAL | -2503 | Unsuccessful initialization. Alternatively, the client environment definition is specified incorrectly. |
DCCLTER_NO_BUFS | -2504 | A necessary amount of buffer could not be allocated. |
DCCLTER_NET_DOWN | -2506 | Network error |
DCCLTER_TIMED_OUT | -2507 | A timeout occurred during reception of the message. |
DCCLTER_SYSERR | -2518 | System error |
DCCLTER_VERSION | -2535 | Different versions |
DCCLTER_INF_TOO_BIG | -2546 | The received message is too large for the CUP-provided area. The part that does not fit is truncated. Values have already been set in the hostname and nodeid arguments. |
DCCLTER_PORT_IN_USE | -2547 | The specified port number is already used. |
DCCLTER_INVALID_MESSAGE | -2548 | Invalid message received |
DCCLTER_ACCEPT_CANCELED | -2549 | The one-way message reception wait status was canceled by the dc_clt_cancel_notification_s function. Values have already been set in the inf, inf_len, and hostname arguments. |
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.