00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef DServerAgent_H
00024 #define DServerAgent_H
00025 #include "micolelib.h"
00026
00027 #define BUTTON_LAG 0.1
00029 #include <config.h>
00030 #include "MicoleAgentThread.h"
00031 #include "ServerAgent.h"
00032
00033 #include <Display.h>
00034 #include <Scene.h>
00035 #include <Node.h>
00036 #include <Field.h>
00037
00038 #include <iostream>
00039
00040
00041 using namespace Reachin;
00042 using namespace std;
00043
00044
00052 class ServerAgent;
00053
00054
00055
00065 class MICOLELIB_API DServerAgent : public MicoleAgentThread
00066 {
00067 private:
00068 ServerAgent * _parent;
00069 SOCKET _sock;
00071 public:
00076 DServerAgent(SOCKET sock, ServerAgent * srv);
00077
00081 ~DServerAgent();
00082
00086 virtual void run();
00087
00093 void sendOnNetwork(string s);
00094
00095
00096 protected:
00100 virtual void prepareToStop(int argc, const char **argv);
00104 virtual void prepareToSuspend(int argc, const char **argv);
00105
00106 };
00107
00109
00110 #endif