Revision 200, 0.8 KB
(checked in by bhilburn, 15 years ago)
|
Initial work to get SML class compiling with a working skeleton. Still
nothing here; just the framework.
|
Line | |
---|
1 | /* Virginia Tech Cognitive Radio Open Source Systems |
---|
2 | * Virginia Tech, 2009 |
---|
3 | * |
---|
4 | * TODO LICENSE INFORMATION GOES HERE |
---|
5 | */ |
---|
6 | |
---|
7 | /* TODO DESCRIPTION OF FILE. |
---|
8 | * |
---|
9 | * This file is a temporary demo of a service management layer using some of |
---|
10 | * our socket communication functions. This is *not* an actual implementation |
---|
11 | * of our defined ServiceManagement class. |
---|
12 | */ |
---|
13 | |
---|
14 | |
---|
15 | #include <cstdlib> |
---|
16 | #include <cstring> |
---|
17 | #include <stdint.h> |
---|
18 | |
---|
19 | #include "vtcross/common.h" |
---|
20 | #include "vtcross/components.h" |
---|
21 | #include "vtcross/containers.h" |
---|
22 | #include "vtcross/debug.h" |
---|
23 | #include "vtcross/error.h" |
---|
24 | #include "vtcross/socketcomm.h" |
---|
25 | |
---|
26 | |
---|
27 | int32_t |
---|
28 | main(int32_t argc, char *argv[]) |
---|
29 | { |
---|
30 | if(argc < 3) |
---|
31 | ERROR(1, "Usage: %s hostname port\n", argv[0]); |
---|
32 | |
---|
33 | ServiceManagementLayer sml; |
---|
34 | |
---|
35 | LOG("Waiting for signal...\n"); |
---|
36 | while(1) { |
---|
37 | // policyEngine.WaitForSignal(); |
---|
38 | } |
---|
39 | |
---|
40 | return 0; |
---|
41 | } |
---|
42 | |
---|