hlswmaster-ng (now in c++)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
536 B

#ifndef _MODHELPER_H_
#define _MODHELPER_H_
#include "multisock.h"
#include "netpkt.h"
struct game_ports {
int portlo;
int porthi;
int gameid;
};
class ModHelper {
public:
static void send(MultiSock* msock, int port, const char* data, int size);
static void send(MultiSock* msock, struct game_ports* arr, const char* data, int size);
static int checkPorts(NetPkt* pkt, struct game_ports* arr);
protected:
ModHelper() {};
ModHelper(const ModHelper& m);
ModHelper& operator=(const ModHelper& m);
};
#endif // _MODHELPER_H_