root/vtcross/trunk/src/cognitive_engines/OSSIE_DEMO_CE/OSSIE_Demo.cpp @ 545

Revision 545, 0.8 KB (checked in by bhilburn, 14 years ago)

Updated all cognitive engine examples to use new CBR structure.

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 policy engine using some of our socket
10 * communication functions. This is *not* an actual implementation of our
11 * defined PolicyEngine class.
12 */
13
14
15#include <cstdlib>
16#include <cstring>
17#include <stdint.h>
18
19#include "OSSIE_CE.h"
20#include "vtcross/debug.h"
21#include "vtcross/error.h"
22
23
24int32_t
25main(int32_t argc, char *argv[])
26{
27    if(argc < 3)
28       ERROR(1, "Usage: %s hostname port\n", argv[0]);
29   
30    OSSIE_CE cognitiveEngine(argv[1], argv[2], 10, false);
31
32    LOG("Waiting for signal...\n");
33    while(1) {
34        cognitiveEngine.WaitForSignal();
35    }
36
37    return 0;
38}
39
Note: See TracBrowser for help on using the browser.