NetIPC 3000/XL Programmer's Reference Manual (5958-8600)

Table Of Contents
76 Chapter3
NetIPC Intrinsics
IPCCONTROL
IPCCONTROL
Performs special operations.
Syntax
IPCCONTROL (
descriptor
,
request
[,
wrtdata
][,
wlen
][,
readdata
][,
rlen
]
[,
flags
][,
result
)]
Parameters
descriptor
(input)
32-bit integer, by value. Either a call socket
descriptor or a VC socket descriptor.
request
(input)
32-bit integer, by value. The value supplied indicates
what control operation is to be performed.
1 = Enable nowait (asynchronous) I/O for the
specified call socket or VC socket descriptor.
2 = Disable nowait (asynchronous) I/O for the
specified call socket or VC socket descriptor; perform
waited (blocking) calls only.
3 = Change the default timeout (initially
60 seconds) for waited and nowait I/O (receive
operations only). The
wrtdata
(two bytes) and
wlen
parameters are required with this request. The
timeout is specified in tenths of a second.
9 = Accept a connection request that is in the
deferred state. This request is valid only over
connection sockets in the connection pending state.
To reject a connection request, see
request
code 15.
The call must be accepted before attempting to send
or receive data over the connection. No
readdata
is
associated with this request.
For this request, the
wrtdata
parameter can
(optionally) contain information in the format of the
opt
parameter used in the other intrinsics. The valid
codes are:
code 2 — (X.25 only.) This option field contains
data to be sent as user data in the call accepted or
clear indication packet. The maximum length for
X.25 call user data (CUD) is 16 bytes. If the fast