![ICS 8099 Instruction Manual Download Page 129](http://html1.mh-extra.com/html/ics/8099/8099_instruction-manual_3540995129.webp)
A-37
A4
C.12 keepalive
The keepalive procedure is used to read/modify the keepalive value. If set to
zero, then keepalives will not be used. If used, then this is the time (in seconds)
of inactivity prior to a keepalive being sent.
struct Keepalive_Parms {
unsigned
int
action;
unsigned
int
time;
};
struct Keepalive_Resp {
unsigned
int
error;
unsigned
int
time;
};
Keepalive_Resp keepalive (Keepalive_Parms) = 12;
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 time value is not range checked, thus it is possible to define an impossible
timeout period. A time value of zero prevents keepalive from being used. If a
channel remains inactive for the specified time period, then a keepalive is sent
(assuming time is non-zero). The returned Keepalive_Resp structure will always
contain the current keepalive value, irrespective of the error value.
* Note that the Keepalive time may be fixed and not variable. If non-zero time
is specified, Keepalive will be active regardless of time.
error Meaning
0
No error
1
Syntax error
5
Parameter error