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

Revision 211, 0.8 KB (checked in by bhilburn, 15 years ago)

Removing unnecessary includes and adding one to components.h that
apparently was only working because of other included files.

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 <stdint.h>
17
18#include "vtcross/common.h"
19#include "vtcross/components.h"
20#include "vtcross/error.h"
21
22
23int32_t
24main(int32_t argc, char *argv[])
25{
26    if(argc < 3)
27       ERROR(1, "Usage: %s config_file primary_port policy_port command_port\n", argv[0]);
28   
29    CognitiveRadioShell cognitiveRadioShell(argv[1], atoi(argv[2]), atoi(argv[3]), atoi(argv[4]));
30
31    cognitiveRadioShell.StartShellServer();
32
33    return 0;
34}
35
Note: See TracBrowser for help on using the browser.