26 lines
383 B
C++
26 lines
383 B
C++
#ifndef _RECVQUEUE_H_
|
|
#define _RECVQUEUE_H_
|
|
|
|
#include "netpkt.h"
|
|
#include "semaphore.h"
|
|
#include "list.h"
|
|
|
|
class RecvQueue {
|
|
public:
|
|
RecvQueue() {};
|
|
~RecvQueue();
|
|
|
|
void addPkt(NetPkt* pkt);
|
|
NetPkt* getPkt();
|
|
|
|
protected:
|
|
RecvQueue(const RecvQueue& rq);
|
|
RecvQueue& operator=(const RecvQueue& rq);
|
|
|
|
private:
|
|
Semaphore pktCount;
|
|
List<NetPkt> pktList;
|
|
};
|
|
|
|
#endif // _RECVQUEUE_H_
|