D A E M O N
file name and parameters of the command line will be
transferred. In this case
the general format of the string is:
<flags>date_and_time:
0xfeparameter1[|parameter2[|parameter3[…]]]
0xfepath1[;path2[;path3[…]]]
where:
°
0xfe
defines the section beginning;
°
[parameterN]
defines the corresponding command
line parameter (without the leading character "
–
");
°
pathN
defines the corresponding path to the location
to be checked.
The number of paths and parameters is unlimited.
•
3
—the
command param
substring transfers parame-
ters of the shared memory, where the examined object
was preplaced. The mode is used if the objects are
checked without being intermediately saved onto the
disk. In this case
the general format of the string is:
<flags>date_and_time:<switch|length|>
where:
°
|
is the character separating sections;
°
switch
is the value acquired using the
ftok()
function;
°
length
is a size of the shared memory.
The value
3
is used only in the server version of the Daemon pro-
gram. 4 displays the version number.
4. Read check-results from the socket.
The results are read in 2 bytes. The low byte contains
standard exit codes or the value 0x3f (in this case the client
program must return the operation to be applied by the
daemon process to the object). The high byte contains
flags defining further operations.
The value 0x2 in the high byte means that there should be
70