Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2007, 8:38:47 PM (16 years ago)
Author:
scheusso
Message:

adapted PacketBuffer to work with ENetPacket *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/PacketBuffer.h

    r174 r188  
    1616#include <queue>
    1717#include <string>
     18#include <enet/enet.h>
    1819#include <boost/bind.hpp>
    1920#include <boost/thread/mutex.hpp>
     
    3132
    3233struct QueueItem{
    33   PacketEnvelope *packet;
     34  ENetPacket *packet;
    3435  QueueItem *next;
    3536};
     
    4344  void print();
    4445  // pops a packet from the queue
    45   PacketEnvelope pop();
     46  ENetPacket *pop();
    4647  // pushs a packet to the queue
    47   bool push(PacketEnvelope pck);
     48  bool push(ENetPacket *pck);
    4849private:
    4950  QueueItem *first;
Note: See TracChangeset for help on using the changeset viewer.