#include #include "mod_gamespy2.h" static struct game_ports port_arr[] = { { 7777, 7788, ID_UT }, // ut(5), ut2k3(14), rune(18), ut2k4(33), aao(15) { 22000, 22010, ID_BF1942 }, // bf1942(16) { 23000, 23010, ID_BFV }, // bfv(35) { 26001, 26011, ID_IGI2 }, // igi2(19) { 27888, 27888, ID_AVP2 }, // avp2(17) { 0,0,0 } }; static const char scanmsg[] = { 0xFE, 0xFD, 0x00, 0xDE, 0xAD, 0xBE, 0xEF, 0xFF, 0x00, 0x00 }; static const char replyhead[] = { 0x00, 0xDE, 0xAD, 0xBE, 0xEF }; void ModGameSpy2::scan(MultiSock* msock) { msock->send(port_arr, scanmsg, sizeof(scanmsg)); } int ModGameSpy2::parse(NetPkt* pkt, GameList* slist) { return 0; }