Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

network: some small changes

File size: 1.1 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  /* initialize the network manager */
40  nm->initialize();
41 
42  /* esatblish a connection */
43  nm->establishConnection();
44
45  //ClassList::debug(3, 0);
46
47  return 0;
48}
49
50
51bool ShellBuffer::addBufferLineStatic(const char* line, ...)
52{
53  va_list arguments;
54  vprintf(line, arguments);
55
56}
Note: See TracBrowser for help on using the repository browser.