2006-02-05 16:44:38 +01:00
|
|
|
#include <string.h>
|
2006-03-05 02:28:19 +01:00
|
|
|
#include "modhelper.h"
|
2006-02-05 16:44:38 +01:00
|
|
|
#include "mod_halflife.h"
|
|
|
|
|
|
|
|
static struct game_ports port_arr[] = {
|
|
|
|
{ 27015, 27024, ID_HL },
|
|
|
|
{ 0,0,0 }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char scanmsg1[] = "\xff\xff\xff\xff""details";
|
|
|
|
static const char scanmsg2[] = "\xff\xff\xff\xff\x54";
|
|
|
|
static const char scanmsg3[] = "\xff\xff\xff\xff""TSource Engine Query";
|
|
|
|
|
|
|
|
void ModHalfLife::scan(MultiSock* msock)
|
|
|
|
{
|
2006-03-05 02:28:19 +01:00
|
|
|
ModHelper::send(msock, port_arr, scanmsg1, strlen(scanmsg1));
|
|
|
|
ModHelper::send(msock, port_arr, scanmsg2, strlen(scanmsg2));
|
|
|
|
ModHelper::send(msock, port_arr, scanmsg3, strlen(scanmsg3));
|
2006-02-05 16:44:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int ModHalfLife::parse(NetPkt* pkt, GameList* slist)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|