Last change
on this file since 5609 was
5609,
checked in by patrick, 19 years ago
|
network: some more debug in info, help argument implemented (and empty)
|
File size:
1.0 KB
|
Rev | Line | |
---|
[5579] | 1 | |
---|
[5580] | 2 | #include "stdlibincl.h" |
---|
| 3 | #include <stdarg.h> |
---|
| 4 | #include <stdio.h> |
---|
| 5 | #include "shell_buffer.h" |
---|
[5609] | 6 | #include "class_list.h" |
---|
[5579] | 7 | |
---|
[5580] | 8 | #include "network_manager.h" |
---|
[5579] | 9 | |
---|
[5580] | 10 | int verbose = 4; |
---|
[5579] | 11 | |
---|
[5580] | 12 | |
---|
| 13 | int startHelp(int argc, char** argv) |
---|
[5609] | 14 | { |
---|
| 15 | printf("Network is a network unit test\n"); |
---|
| 16 | printf(" --help: this output\n"); |
---|
| 17 | printf("\n"); |
---|
| 18 | } |
---|
[5579] | 19 | |
---|
| 20 | /** |
---|
| 21 | * |
---|
| 22 | * main function |
---|
| 23 | * |
---|
| 24 | * here the journey begins |
---|
| 25 | */ |
---|
| 26 | int main(int argc, char** argv) |
---|
| 27 | { |
---|
| 28 | // here the pre-arguments are loaded, these are needed to go either to orxonx itself, Help, or Benchmark. |
---|
| 29 | int i; |
---|
| 30 | for(i = 1; i < argc; ++i) |
---|
| 31 | { |
---|
| 32 | if(! strcmp( "--help", argv[i]) || !strcmp("-h", argv[i])) return startHelp(argc, argv); |
---|
| 33 | //else if(!strcmp( "--gui", argv[i]) || !strcmp("-g", argv[i])) showGui = true; |
---|
| 34 | } |
---|
| 35 | |
---|
[5609] | 36 | /* create the network manager */ |
---|
| 37 | NetworkManager* nm = new NetworkManager(); |
---|
| 38 | |
---|
| 39 | /* esatblish a connection */ |
---|
| 40 | nm->establishConnection(); |
---|
[5580] | 41 | |
---|
[5609] | 42 | //ClassList::debug(3, 0); |
---|
| 43 | |
---|
[5580] | 44 | return 0; |
---|
[5579] | 45 | } |
---|
| 46 | |
---|
| 47 | |
---|
[5580] | 48 | bool ShellBuffer::addBufferLineStatic(const char* line, ...) |
---|
| 49 | { |
---|
| 50 | va_list arguments; |
---|
| 51 | vprintf(line, arguments); |
---|
| 52 | |
---|
| 53 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.