mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
27 lines
699 B
C++
27 lines
699 B
C++
#ifndef _PAIRREQ_H_
|
|
#define _PAIRREQ_H_
|
|
|
|
#include <string>
|
|
#include "packetTypes.h"
|
|
#include "net_wmm.h"
|
|
#include "PacketHandler.h"
|
|
|
|
using namespace std;
|
|
|
|
/***********************************************************************
|
|
Class: The pairReq class.
|
|
|
|
Description: Creates a UDP socket for pairReqest data.
|
|
***********************************************************************/
|
|
class PairReq : public PacketHandler
|
|
{
|
|
public:
|
|
// Constructor. Takes an IP address, port and TOS value
|
|
PairReq(string ipaddr, int port) : PacketHandler(ipaddr, port, 0x02, PKT_ID_PAIR_REQUEST){};
|
|
|
|
// Handles upstream data transmission
|
|
int upHandler(char serBuf[], int len);
|
|
};
|
|
|
|
#endif //_PAIRREQ_H
|