A-31
A4
C.6
comm_timeout
The comm_timeout procedure is used to read/modify the TCP timeout value.
An inactive TCP channel will be left open this length of time before being
closed. A value of zero means no timeout checking.
struct Comm_Timeout_Parms {
unsigned
int
action;
unsigned
int
timeout;
};
struct Comm_Timeout_Resp {
unsigned
int
error;
unsigned int timeout;
};
Comm_Timeout_Resp comm_timeout (Comm_Timeout_Parms) = 6;
The action value determines whether the client wishes to execute a read of the
current setting, or a modification of the current value.
action = 0 = read of current value
action = 1 = modify current value
If the action value is other than 0 or 1, then an error value of 5 is returned.
If the RPC message is of insufficient length to satisfy the required length, an
error value of 1 is returned.
The timeout value is not range checked, thus it is possible to define an impos-
sible timeout period. A timeout value of zero prevents timeout checking. If a
channel remains inactive for the specified timeout period, then the channel is
closed in the belief that the TCP connection is broken.
The comm_timeout procedure applies only to the VXI-11 core and Edevice
configuration channels. The timeout period is defined as the number of seconds
until a timeout is detected. The returned Comm_Timeout_Resp structure will
always contain the current communication timeout value, irrespective of the
error value.
error Meaning
0
No error
1
Syntax error
5
Parameter error