Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2005, 3:39:38 AM (18 years ago)
Author:
patrick
Message:

network: finished the simple_sync program

File:
1 edited

Legend:

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

    r5649 r5650  
    1010#include "network_stream.h"
    1111#include "synchronizeable.h"
     12
     13#include "simple_sync.h"
    1214
    1315int verbose = 4;
     
    123125  //SDLNet_ResolveHost(&ip, "127.0.0.1", 9999);
    124126  SDLNet_ResolveHost(&ip, "localhost", 9999);
    125   Synchronizeable sync;
     127  Synchronizeable* clientSync = new SimpleSync();
     128  Synchronizeable* serverSync = new SimpleSync();
     129 
    126130 
    127131 
     
    133137
    134138  /* create a server stream */
    135   nm->createServer(sync, 9999);
     139  nm->createServer(*serverSync, 9999);
    136140 
    137141  /* esatblish a connection */
    138   nm->establishConnection(ip, sync);
     142  nm->establishConnection(ip, *clientSync);
    139143
    140144  /* synchronize the data 1 time (increment for longer tests) */
Note: See TracChangeset for help on using the changeset viewer.