root/vtcross/trunk/src/shell/shell_demo.cpp @ 207

Revision 207, 0.9 KB (checked in by jgaeddert, 15 years ago)

Added CognitiveRadioShell? class and Shell demo.

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 "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
27int32_t
28main(int32_t argc, char *argv[])
29{
30    if(argc < 3)
31       ERROR(1, "Usage: %s config_file primary_port policy_port command_port\n", argv[0]);
32   
33    CognitiveRadioShell cognitiveRadioShell(argv[1], atoi(argv[2]), atoi(argv[3]), atoi(argv[4]));
34
35    cognitiveRadioShell.StartShellServer();
36
37    return 0;
38}
39
Note: See TracBrowser for help on using the browser.