Did some stuff
[matches/swarm.git] / src / slave.h
1 #ifndef _SLAVE_H
2 #define _SLAVE_H
3
4 #define SLAVE_LOGFILE ".swarm.slave.log"
5
6 #include "options.h"
7 #include <unistd.h>
8 #include "task.h" // avoid compiler errors
9 typedef struct
10 {
11         int in;
12         int out;
13         int socket_child_end; // the child's end of the socket
14         int pid; // pid of the process running the slave; == 0 for network slaves
15         char * name;
16         char * addr;
17         Task * task;
18         Task * task_pool; // tasks specific to the slave
19
20
21         
22
23         bool running;
24 } Slave;
25
26 extern void Slave_main(Options * o);
27
28 extern void Slave_loop(Options * o);
29
30
31 #endif //_SLAVE_H
32
33 //EOF

UCC git Repository :: git.ucc.asn.au