Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/subprojects/network/network_unit_test.cc @ 5609

Last change on this file since 5609 was 5609, checked in by patrick, 18 years ago

network: some more debug in info, help argument implemented (and empty)

File size: 1.0 KB
Line 
1
2#include "stdlibincl.h"
3#include <stdarg.h>
4#include <stdio.h>
5#include "shell_buffer.h"
6#include "class_list.h"
7
8#include "network_manager.h"
9
10int verbose = 4;
11
12
13int startHelp(int argc, char** argv)
14{
15  printf("Network is a network unit test\n");
16  printf(" --help:           this output\n");
17  printf("\n");
18}
19
20/**
21 *
22 *  main function
23 *
24 * here the journey begins
25 */
26int 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
36  /* create the network manager */
37  NetworkManager* nm = new NetworkManager();
38 
39  /* esatblish a connection */
40  nm->establishConnection();
41
42  //ClassList::debug(3, 0);
43
44  return 0;
45}
46
47
48bool 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.