blob: b40ae16d5361474a13ca2cf2f904d244f4095131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef _CLIENT_TASK_
#define _CLIENT_TASK_
#include "Client.h"
#include "ace/ARGV.h"
class Client_Task : public ACE_Task_Base
{
public:
Client_Task (const std::string& args)
: args_ (args)
{ }
virtual int svc ()
{
ACE_ARGV my_args (args_.c_str());
{
Client client (my_args.argc(), my_args.argv());
client.run();
}
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Client_Task::svc>\n"));
return 0;
}
private:
std::string args_;
};
#endif //_CLIENT_TASK_
|