Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2007, 11:30:17 PM (16 years ago)
Author:
nicolasc
Message:

cleaned up network, builds with CML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merger/src/network/PacketBufferTestExt.cc

    r278 r285  
    33#include <enet/enet.h>
    44#include <boost/thread/thread.hpp>
    5 #include "network/PacketBuffer.h"
    6 #include "network/PacketBuffer.cc"
     5#include "PacketBuffer.h"
     6#include "PacketBuffer.cc"
    77
    88using namespace network;
     
    1515  for(int i=0; i<10; i++){
    1616    std::string temp = "packet ";
    17     packet = enet_packet_create("packet", strlen("packet ")+1, 
     17    packet = enet_packet_create("packet", strlen("packet ")+1,
    1818ENET_PACKET_FLAG_RELIABLE);
    1919    std::cout << i << ": pushing " << packet->data << std::endl;
     
    4343  boost::thread thrd1(boost::bind(&write, &test));
    4444  boost::thread thrd2(boost::bind(&read, &test));
    45    
     45
    4646  thrd1.join();
    4747  thrd2.join();
    48  
     48
    4949  return 0;
    5050}
Note: See TracChangeset for help on using the changeset viewer.