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::GetRemoteComponentType(int32_t socketFD) |
---|
37 | { |
---|
38 | } |
---|
39 | |
---|
40 | |
---|
41 | void |
---|
42 | ServiceManagementLayer::WaitForSignal(int32_t socketFD) |
---|
43 | { |
---|
44 | LOG("ServiceManagementLayer:: Waiting for signal...\n"); |
---|
45 | |
---|
46 | // TODO This is the critical point of this class... we need to figure out |
---|
47 | // what the requests will look like before we can proceed. |
---|
48 | while(1) {} |
---|
49 | |
---|
50 | /* |
---|
51 | if(GetRequest(socketFD, pList, &ce_info)) { |
---|
52 | LOG("ServiceManagementLayer:: Received signal.\n"); |
---|
53 | } |
---|
54 | */ |
---|
55 | |
---|
56 | } |
---|
57 | |
---|
58 | |
---|
59 | void |
---|
60 | ServiceManagementLayer::Shutdown() |
---|
61 | { |
---|
62 | } |
---|
63 | |
---|
64 | |
---|
65 | void |
---|
66 | ServiceManagementLayer::Reset() |
---|
67 | { |
---|
68 | } |
---|
69 | |
---|
70 | |
---|
71 | void |
---|
72 | ServiceManagementLayer::RegisterComponent(int32_t socketFD) |
---|
73 | { |
---|
74 | SendMessage(socketFD, "sml_register"); |
---|
75 | LOG("ServiceManagementLayer:: Registration message sent.\n"); |
---|
76 | } |
---|
77 | |
---|
78 | |
---|
79 | void |
---|
80 | ServiceManagementLayer::DeregisterComponent(int32_t socketFD) |
---|
81 | { |
---|
82 | } |
---|
83 | |
---|
84 | |
---|
85 | void |
---|
86 | ServiceManagementLayer::TransferRadioConfiguration() |
---|
87 | { |
---|
88 | } |
---|
89 | |
---|
90 | |
---|
91 | void |
---|
92 | ServiceManagementLayer::TransferExperience() |
---|
93 | { |
---|
94 | } |
---|
95 | |
---|
96 | |
---|
97 | void |
---|
98 | ServiceManagementLayer::ReceiveServices() |
---|
99 | { |
---|
100 | } |
---|
101 | |
---|
102 | |
---|
103 | void |
---|
104 | ServiceManagementLayer::SetActiveMission() |
---|
105 | { |
---|
106 | } |
---|
107 | |
---|
108 | |
---|
109 | void |
---|
110 | ServiceManagementLayer::ListServices() |
---|
111 | { |
---|
112 | } |
---|
113 | |
---|
114 | |
---|
115 | void |
---|
116 | ServiceManagementLayer::ReloadConfiguration() |
---|
117 | { |
---|
118 | } |
---|
119 | |
---|
120 | |
---|
121 | void |
---|
122 | ServiceManagementLayer::LoadConfiguration() |
---|
123 | { |
---|
124 | LOG("ServiceManagementLayer:: Loading Configuration.\n"); |
---|
125 | } |
---|
126 | |
---|