1 | /* Virginia Tech Cognitive Radio Open Source Systems |
---|
2 | * Virginia Tech, 2009 |
---|
3 | * |
---|
4 | * LICENSE INFORMATION GOES HERE |
---|
5 | */ |
---|
6 | |
---|
7 | /* DESCRIPTION OF FILE. |
---|
8 | */ |
---|
9 | |
---|
10 | |
---|
11 | #include <cstdlib> |
---|
12 | #include <cstring> |
---|
13 | #include <stdint.h> |
---|
14 | |
---|
15 | #include "vtcross/common.h" |
---|
16 | #include "vtcross/components.h" |
---|
17 | #include "vtcross/containers.h" |
---|
18 | #include "vtcross/debug.h" |
---|
19 | #include "vtcross/error.h" |
---|
20 | #include "vtcross/socketcomm.h" |
---|
21 | |
---|
22 | |
---|
23 | ServiceManagementLayer::ServiceManagementLayer() |
---|
24 | { |
---|
25 | LOG("Creating Service Management Layer.\n"); |
---|
26 | LoadConfiguration(); |
---|
27 | } |
---|
28 | |
---|
29 | |
---|
30 | ServiceManagementLayer::~ServiceManagementLayer() |
---|
31 | { |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
35 | void |
---|
36 | ServiceManagementLayer::SendComponentType() |
---|
37 | { |
---|
38 | } |
---|
39 | |
---|
40 | |
---|
41 | void |
---|
42 | ServiceManagementLayer::ConnectToRemoteComponent(const char* serverName, const char* serverPort) |
---|
43 | { |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | void |
---|
48 | ServiceManagementLayer::WaitForSignal() |
---|
49 | { |
---|
50 | // TODO This is the critical point of this class... we need to figure out |
---|
51 | // what the requests will look like before we can proceed. |
---|
52 | |
---|
53 | /* |
---|
54 | if(GetRequest(socketFD, pList, &ce_info)) { |
---|
55 | LOG("ServiceManagementLayer:: Received signal.\n"); |
---|
56 | } |
---|
57 | */ |
---|
58 | |
---|
59 | } |
---|
60 | |
---|
61 | |
---|
62 | void |
---|
63 | ServiceManagementLayer::Shutdown() |
---|
64 | { |
---|
65 | } |
---|
66 | |
---|
67 | |
---|
68 | void |
---|
69 | ServiceManagementLayer::Reset() |
---|
70 | { |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | void |
---|
75 | ServiceManagementLayer::RegisterComponent() |
---|
76 | { |
---|
77 | SendMessage(shellSocketFD, "register_sml"); |
---|
78 | LOG("ServiceManagementLayer:: Registration message sent.\n"); |
---|
79 | } |
---|
80 | |
---|
81 | |
---|
82 | void |
---|
83 | ServiceManagementLayer::DeregisterComponent() |
---|
84 | { |
---|
85 | } |
---|
86 | |
---|
87 | |
---|
88 | void |
---|
89 | ServiceManagementLayer::TransferRadioConfiguration() |
---|
90 | { |
---|
91 | } |
---|
92 | |
---|
93 | |
---|
94 | void |
---|
95 | ServiceManagementLayer::TransferExperience() |
---|
96 | { |
---|
97 | } |
---|
98 | |
---|
99 | |
---|
100 | void |
---|
101 | ServiceManagementLayer::ReceiveServices() |
---|
102 | { |
---|
103 | } |
---|
104 | |
---|
105 | |
---|
106 | void |
---|
107 | ServiceManagementLayer::SetActiveMission() |
---|
108 | { |
---|
109 | } |
---|
110 | |
---|
111 | |
---|
112 | void |
---|
113 | ServiceManagementLayer::ListServices() |
---|
114 | { |
---|
115 | } |
---|
116 | |
---|
117 | |
---|
118 | void |
---|
119 | ServiceManagementLayer::ReloadConfiguration() |
---|
120 | { |
---|
121 | } |
---|
122 | |
---|
123 | |
---|
124 | void |
---|
125 | ServiceManagementLayer::LoadConfiguration() |
---|
126 | { |
---|
127 | LOG("ServiceManagementLayer:: Loading Configuration.\n"); |
---|
128 | } |
---|
129 | |
---|