Revision 411, 1.7 KB
(checked in by trnewman, 15 years ago)
|
Adding Apache license information.
|
Line | |
---|
1 | /* |
---|
2 | Copyright 2009 Virginia Polytechnic Institute and State University |
---|
3 | |
---|
4 | Licensed under the Apache License, Version 2.0 (the "License"); |
---|
5 | you may not use this file except in compliance with the License. |
---|
6 | You may obtain a copy of the License at |
---|
7 | |
---|
8 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
9 | |
---|
10 | Unless required by applicable law or agreed to in writing, software |
---|
11 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
13 | See the License for the specific language governing permissions and |
---|
14 | limitations under the License. |
---|
15 | */ |
---|
16 | |
---|
17 | #include <cstdlib> |
---|
18 | #include <cstring> |
---|
19 | #include <stdint.h> |
---|
20 | #include <string> |
---|
21 | #include <stdlib.h> |
---|
22 | |
---|
23 | #include <arpa/inet.h> |
---|
24 | #include <iostream> |
---|
25 | #include <netinet/in.h> |
---|
26 | #include <netdb.h> |
---|
27 | #include <fcntl.h> |
---|
28 | #include <sys/ioctl.h> |
---|
29 | #include <sys/mman.h> |
---|
30 | #include <sys/socket.h> |
---|
31 | #include <sys/types.h> |
---|
32 | #include <sys/wait.h> |
---|
33 | |
---|
34 | #include "sqlite3.h" |
---|
35 | |
---|
36 | //#include "tinyxml.h" |
---|
37 | //#include "tinyxml.cpp" |
---|
38 | //#include "tinystr.h" |
---|
39 | |
---|
40 | #include "vtcross/common.h" |
---|
41 | #include "vtcross/components.h" |
---|
42 | #include "vtcross/containers.h" |
---|
43 | #include "vtcross/debug.h" |
---|
44 | #include "vtcross/error.h" |
---|
45 | #include "vtcross/socketcomm.h" |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | /*#include <stdio.h> |
---|
50 | #include <sys/types.h> |
---|
51 | #include <sys/socket.h> |
---|
52 | #include <netinet/in.h> |
---|
53 | #include <netdb.h> |
---|
54 | //#include <iostream> |
---|
55 | #include <stdlib.h> |
---|
56 | #include <string.h> |
---|
57 | #include <sqlite3.h> |
---|
58 | #include <sqlite3ext.h>*/ |
---|
59 | |
---|
60 | //#include "common.h" |
---|
61 | |
---|
62 | //using namespace std; |
---|
63 | |
---|
64 | |
---|
65 | int main(int argc, char *argv[]) |
---|
66 | { |
---|
67 | |
---|
68 | if(argc < 5) |
---|
69 | ERROR(1, "Usage: %s config hostname shell_port client_port\n", argv[0]); |
---|
70 | |
---|
71 | ServiceManagementLayer SML(argv[1], argv[2], argv[3], atoi(argv[4])); |
---|
72 | SML.StartSMLServer(); |
---|
73 | } |
---|