eee5ac70f9e06f688e77178b6f05eb17dfd7af45
1 /**
2 * Copyright (C) ARM Limited 2010-2012. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef __CHILD_H__
10 #define __CHILD_H__
12 #include <pthread.h>
13 #include "Fifo.h"
14 #include "OlySocket.h"
16 class Child {
17 public:
18 Child(char* sessionXMLPath);
19 Child(OlySocket* sock, int numConnections);
20 ~Child();
21 void run();
22 OlySocket *socket;
23 void endSession();
24 int numExceptions;
25 private:
26 char* xmlString;
27 char* sessionXMLPath;
28 int numConnections;
29 time_t timeStart;
30 pthread_t durationThreadID, stopThreadID, senderThreadID;
32 void initialization();
33 };
35 #endif //__CHILD_H__