OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P
#include <dcvclt.h>
DCLONG dc_clt_send_s(DCCLT_ID cltid, char *buff,
DCLONG sendleng, char *hostname,
unsigned short portnum, DCLONG flags)
#include <dcvclt.h>
int dc_clt_send(char *buff, DCLONG sendleng,
char *hostname,
unsigned short portnum, DCLONG flags)
#include <dcvclt.h>
DCLONG dc_clt_send_s(DCCLT_ID cltid, char CLTFAR *buff,
DCLONG sendleng,
char CLTFAR *hostname,
unsigned short portnum, DCLONG flags)
#include <dcvclt.h>
int dc_clt_send(char CLTFAR *buff, DCLONG sendleng,
char CLTFAR *hostname,
unsigned short portnum, DCLONG flags)
Sends messages to the MHP.
Before issuing the dc_clt_send_s function, the dc_rpc_open_s function with flags set to DCCLT_ONEWAY_SND or DCCLT_SNDRCV must be issued.
| Return Value | Value (decimal) | Meaning |
|---|---|---|
| DC_OK | 0 | Normal termination |
| DCCLTER_INVALID_ARGS | -2501 | Invalid argument |
| DCCLTER_PROTO | -2502 | The dc_rpc_open_s function has not been issued. Or else, the dc_rpc_open_s function has been issued with DCCLT_ONEWAY_SND or DCCLT_SNDRCV not specified in flags. |
| DCCLTER_NO_BUFS | -2504 | Insufficient memory |
| DCCLTER_NET_DOWN | -2506 | Network error |
| DCCLTER_TIMED_OUT | -2507 | A request for connection establishment timed out. |
| DCCLTER_SYSERR | -2518 | System error |
| DCCLTER_RESOURCE | -2538 | Insufficient resource |
| DCCLTER_WRONG_HOST | -2539 | The host name is invalid, or has not been specified in both hostname and DCSNDHOST. |
| DCCLTER_CONNREFUSED | -2541 | A connection establishment request to the remote system was rejected. |
| DCCLTER_INVALID_CLTID | -2544 | The client ID specified for cltid differs from the one received by the dc_clt_cltin_s function. |
| DCCLTER_PORT_IN_USE | -2547 | Port numbers that can be assigned automatically by the operating system are insufficient. |
If the remote system releases the connection when the function sends a message to the remote system, depending on the length of the message, the function might not be able to detect that the connection has been released. However, a subsequent function might detect it. Keep this in mind when you create a CUP.
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.