blob: 0d55d4da07b26b93e907a4f022e5329eaf5ead27 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
/* -*- C++ -*- */
// $Id$
#ifndef COMMAND_TASKS_H
#define COMMAND_TASKS_H
#include "ace/SOCK_Stream.h"
#include "Command.h"
#include "CommandTask.h"
#include "CommandModule.h"
// CommandModule and CommandTask objects that implement the command
// stream functions.
// Listing 011 code/ch18
class AnswerCallModule : public CommandModule
{
public:
AnswerCallModule (ACE_SOCK_Stream * peer);
};
// Listing 011
// Listing 012 code/ch18
class AnswerCallDownstreamTask : public CommandTask
{
public:
AnswerCallDownstreamTask ();
protected:
virtual int process (Command *command);
};
// Listing 012
// Listing 013 code/ch18
class AnswerCallUpstreamTask : public CommandTask
{
public:
AnswerCallUpstreamTask ();
protected:
virtual int process (Command *command);
};
// Listing 013
// Listing 02 code/ch18
class RetrieveCallerIdModule : public CommandModule
{
public:
RetrieveCallerIdModule (ACE_SOCK_Stream *peer);
};
class RetrieveCallerIdDownstreamTask : public CommandTask
{
public:
RetrieveCallerIdDownstreamTask ();
protected:
virtual int process (Command *command);
};
class RetrieveCallerIdUpstreamTask : public CommandTask
{
public:
RetrieveCallerIdUpstreamTask ();
protected:
virtual int process (Command *command);
};
// Listing 02
// Listing 03 code/ch18
class PlayMessageModule : public CommandModule
{
public:
PlayMessageModule (ACE_SOCK_Stream *peer);
};
class PlayMessageDownstreamTask : public CommandTask
{
public:
PlayMessageDownstreamTask ();
protected:
virtual int process (Command *command);
};
class PlayMessageUpstreamTask : public CommandTask
{
public:
PlayMessageUpstreamTask ();
protected:
virtual int process (Command *command);
};
// Listing 03
// Listing 04 code/ch18
class RecordMessageModule : public CommandModule
{
public:
RecordMessageModule (ACE_SOCK_Stream *peer);
};
class RecordMessageDownstreamTask : public CommandTask
{
public:
RecordMessageDownstreamTask ();
protected:
virtual int process (Command *command);
};
class RecordMessageUpstreamTask : public CommandTask
{
public:
RecordMessageUpstreamTask ();
protected:
virtual int process (Command *command);
};
// Listing 04
#endif /* COMMAND_TASKS_H */
|