root/vtcross/trunk/src/service_management_layer/sml_demo.cpp @ 279

Revision 279, 1.0 KB (checked in by wrodgers, 15 years ago)

Updated shell to conform with API

Line 
1#include <cstdlib>
2#include <cstring>
3#include <stdint.h>
4#include <string>
5#include <stdlib.h>
6
7#include <arpa/inet.h>
8#include <iostream>
9#include <netinet/in.h>
10#include <netdb.h>
11#include <fcntl.h>
12#include <sys/ioctl.h>
13#include <sys/mman.h>
14#include <sys/socket.h>
15#include <sys/types.h>
16#include <sys/wait.h>
17
18#include "sqlite3.h"
19
20//#include "tinyxml.h"
21//#include "tinyxml.cpp"
22//#include "tinystr.h"
23
24#include "vtcross/common.h"
25#include "vtcross/components.h"
26#include "vtcross/containers.h"
27#include "vtcross/debug.h"
28#include "vtcross/error.h"
29#include "vtcross/socketcomm.h"
30
31
32
33/*#include <stdio.h>
34#include <sys/types.h>
35#include <sys/socket.h>
36#include <netinet/in.h>
37#include <netdb.h>
38//#include <iostream>
39#include <stdlib.h>
40#include <string.h>
41#include <sqlite3.h>
42#include <sqlite3ext.h>*/
43
44//#include "common.h"
45
46//using namespace std;
47
48
49int main(int argc, char *argv[])
50
51
52    if(argc < 3)
53       ERROR(1, "Usage: %s config hostname port\n", argv[0]);
54 
55    ServiceManagementLayer SML(argv[1], argv[2], argv[3]);
56    SML.StartSMLServer();     
57}
Note: See TracBrowser for help on using the browser.