In file include/snoop.h:

typedef struct BSSpy

Structure for spy processes.

[more]struct BSSpy *next
Pointer to next spy.
[more]struct BSSpy *prev
Pointer to previous spy.
[more]pid_t pid
Unix process ID
[more]key_t proc
Key to the BSProc shared memory
[more]key_t qkey
Key to our message queue.
[more]int queue
We keep the queue identifier handy here


Documentation

Structure for spy processes. You use the bs_createspy() function to get this reference for each process you want to watch.
ostruct BSSpy *next
Pointer to next spy. The Buffalo Snooper library does not maintain this field in any way. It's there for spy programs that want to watch many processes more conveniently.

ostruct BSSpy *prev
Pointer to previous spy. Not maintained by the library, like the field above.

opid_t pid
Unix process ID

okey_t proc
Key to the BSProc shared memory

okey_t qkey
Key to our message queue. This is put into the watched process' structure when the spy is created.

oint queue
We keep the queue identifier handy here

Author:
Ronny Bangsund
See Also:
bs_createspy()

Alphabetic index



This page was generated with the help of DOC++.