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, 19 years ago

network: some small changes

File size: 1.1 KB
RevLine 
[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]10int verbose = 4;
[5579]11
[5580]12
13int 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 */
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
[5609]36  /* create the network manager */
37  NetworkManager* nm = new NetworkManager();
38 
[5616]39  /* initialize the network manager */
40  nm->initialize();
41 
[5609]42  /* esatblish a connection */
43  nm->establishConnection();
[5580]44
[5609]45  //ClassList::debug(3, 0);
46
[5580]47  return 0;
[5579]48}
49
50
[5580]51bool ShellBuffer::addBufferLineStatic(const char* line, ...)
52{
53  va_list arguments;
54  vprintf(line, arguments);
55
[5616]56}
Note: See TracBrowser for help on using the repository browser.