2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2024-07-19 11:43:27 -04:00
|
|
|
* Copyright 2001, 2013 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#include "mdef.h"
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2024-07-19 11:43:27 -04:00
|
|
|
#include "gtm_inet.h"
|
2012-02-05 11:35:58 -05:00
|
|
|
|
|
|
|
#include "gtm_string.h"
|
|
|
|
#include "io.h"
|
|
|
|
#include "iotcpdef.h"
|
|
|
|
|
|
|
|
GBLREF io_pair io_curr_device;
|
|
|
|
|
|
|
|
void iotcp_iocontrol(mstr *d)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void iotcp_dlr_device(mstr *d)
|
|
|
|
{
|
|
|
|
io_desc *iod;
|
|
|
|
int len;
|
|
|
|
|
|
|
|
iod = io_curr_device.out;
|
2024-07-19 11:43:27 -04:00
|
|
|
len = STRLEN(iod->dollar.device);
|
2012-02-05 11:35:58 -05:00
|
|
|
/* verify internal buffer has enough space for $DEVICE string value */
|
|
|
|
assert((int)d->len > len);
|
2024-07-19 11:43:27 -04:00
|
|
|
memcpy(d->addr, iod->dollar.device, len);
|
2012-02-05 11:35:58 -05:00
|
|
|
d->len = len;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void iotcp_dlr_key(mstr *d)
|
|
|
|
{
|
|
|
|
io_desc *iod;
|
|
|
|
int len;
|
|
|
|
|
|
|
|
iod = io_curr_device.out;
|
2024-07-19 11:43:27 -04:00
|
|
|
len = STRLEN(iod->dollar.key);
|
2012-02-05 11:35:58 -05:00
|
|
|
/* verify internal buffer has enough space for $KEY string value */
|
|
|
|
assert((int)d->len > len);
|
2024-07-19 11:43:27 -04:00
|
|
|
memcpy(d->addr, iod->dollar.key, len);
|
2012-02-05 11:35:58 -05:00
|
|
|
d->len = len;
|
|
|
|
return;
|
|
|
|
}
|