Revision 465, 1.4 KB
(checked in by bhilburn, 15 years ago)
|
First step in revamping component architecture in preperation for fixing
the CBR implementation. Files only now include the declaration for the
component they need - not all of them.
|
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 "vtcross/common.h" |
---|
37 | #include "vtcross/containers.h" |
---|
38 | #include "vtcross/debug.h" |
---|
39 | #include "vtcross/error.h" |
---|
40 | #include "vtcross/service_management_layer.h" |
---|
41 | #include "vtcross/socketcomm.h" |
---|
42 | |
---|
43 | |
---|
44 | int main(int argc, char *argv[]) |
---|
45 | { |
---|
46 | |
---|
47 | if(argc < 5) |
---|
48 | ERROR(1, "Usage: %s config hostname shell_port client_port\n", argv[0]); |
---|
49 | |
---|
50 | ServiceManagementLayer SML(argv[1], argv[2], argv[3], atoi(argv[4])); |
---|
51 | SML.StartSMLServer(); |
---|
52 | } |
---|