Purpose
Interface from CA ADS to TCP/IP.
Syntax
►►──── SOCKET ─ ( function, return-code, errno, reason-code ─────────────────► ►────┬───────────────────────────────────────────────┬─────────────── ) ────►◄ │ ┌─────────────── , ───────────────┐ │ └─ , ──▼── function-dependent-parameter ─┴──────┘
Parameters
The parameters are the standard parameters used for CA IDMS interface to TCP/IP as documented in CA IDMS Callable Services Guide.
The first four parameters passed are always the same:
Depending on the function, zero or more parameters can follow.
Note: If an optional parameter is not to be specified in the parameter list, it should be replaced by the @ character. A pre-defined record in the dictionary, SOCKET-CALL-INT, describes the socket function's return codes and the errno's, and should be included as a work record.
An ADS dialog associated with a server task (a task started by a listener):
The build-in function should be used within an IF statement. For example:
IF (SOCKET(function,
return-code,
errno,
reason-code,
function-dependent-parameter1,
...)) NE ZERO
|
Copyright © 2014 CA.
All rights reserved.
|
|