Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2005, 2:48:33 AM (18 years ago)
Author:
patrick
Message:

network: added even more interface, more function to the network_manager and sync test class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/subprojects/network/network_unit_test.cc

    r5647 r5649  
    88#include "network_manager.h"
    99#include "network_socket.h"
     10#include "network_stream.h"
    1011#include "synchronizeable.h"
    1112
     
    124125  Synchronizeable sync;
    125126 
     127 
    126128  /* create the network manager */
    127129  NetworkManager* nm = new NetworkManager();
     
    130132  nm->initialize();
    131133
     134  /* create a server stream */
     135  nm->createServer(sync, 9999);
     136 
    132137  /* esatblish a connection */
    133138  nm->establishConnection(ip, sync);
     139
     140  /* synchronize the data 1 time (increment for longer tests) */
     141  for( int i = 0; i < 1; i++) {
     142    nm->synchronize();
     143  }
    134144 
    135145  /* delete the network manager again */
Note: See TracChangeset for help on using the changeset viewer.