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();
19 Child(OlySocket* sock, int numConnections);
20 ~Child();
21 void run();
22 OlySocket *socket;
23 void endSession();
24 int numExceptions;
25 private:
26 int mNumConnections;
28 void initialization();
29 };
31 #endif //__CHILD_H__