FOSSology  4.4.0
Open Source License Compliance by Open Source Software
agent_t Struct Reference

#include <agent.h>

Collaboration diagram for agent_t:
Collaboration graph

Public Attributes

meta_agent_ttype
 the type of agent this is i.e. bucket, copyright...
 
host_thost
 the host that this agent will start on
 
agent_status status
 the state of execution the agent is currently in
 
GThread * thread
 the thread that communicates with this agent
 
time_t check_in
 the time that the agent last generated anything
 
uint8_t n_updates
 keeps track of the number of times the agent has updated
 
pid_t pid
 the pid of the process this agent is running in
 
int from_parent
 file identifier to read from the parent (child stdin)
 
int to_child
 file identifier to print to the child
 
int from_child
 file identifier to read from child
 
int to_parent
 file identifier to print to the parent (child stdout)
 
FILE * read
 FILE* that abstracts the use of the from_child socket.
 
FILE * write
 FILE* that abstracts the use of the to_child socket.
 
job_towner
 the job that this agent is assigned to
 
gchar * data
 the data that has been sent to the agent for analysis
 
gboolean updated
 boolean flag to indicate if the scheduler has updated the data
 
uint64_t total_analyzed
 the total number that this agent has analyzed
 
gboolean alive
 flag to tell the scheduler if the agent is still alive
 
uint8_t return_code
 what was returned by the agent when it disconnected
 
uint32_t special
 any special flags that the agent has set
 

Detailed Description

Internal declaration of private members for the agent type. The agent type is used to communicate with other the associated agent process. Holds host, threading, status, pipes and data information relevant to what the process is doing.

Definition at line 99 of file agent.h.


The documentation for this struct was generated from the following file: