ostinato/server/rxtx.h
2008-05-03 14:37:10 +00:00

36 lines
556 B
C++

#ifndef _RXTX_H
#define _RXTX_H
#include "pcap.h"
#include "abstracthost.h"
typedef struct
{
unsigned int portId;
pcap_if_t *dev;
} PortInfo;
class RxTx
{
public:
RxTx(AbstractHost* host);
~RxTx();
void ProcessMsg(const char* msg, int len);
private:
AbstractHost *host;
char logStr[1024];
#define MAX_PKT_SIZE 1024
unsigned char pktBuff[MAX_PKT_SIZE];
unsigned numPorts;
PortInfo *portInfo;
pcap_if_t *alldevs;
//void Log(char *fmt, ...);
void SendCapabilityInfo(void);
};
#endif