1// 2// This file is part of the aMule Project. 3// 4// Copyright (c) 2003-2011 aMule Team ( admin@amule.org / http://www.amule.org ) 5// Copyright (c) 2002-2011 Merkur ( devs@emule-project.net / http://www.emule-project.net ) 6// 7// Any parts of this program derived from the xMule, lMule or eMule project, 8// or contributed by third-party developers are copyrighted by their 9// respective authors. 10// 11// This program is free software; you can redistribute it and/or modify 12// it under the terms of the GNU General Public License as published by 13// the Free Software Foundation; either version 2 of the License, or 14// (at your option) any later version. 15// 16// This program is distributed in the hope that it will be useful, 17// but WITHOUT ANY WARRANTY; without even the implied warranty of 18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19// GNU General Public License for more details. 20// 21// You should have received a copy of the GNU General Public License 22// along with this program; if not, write to the Free Software 23// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 24// 25 26#ifndef ED2KC2SUDP_H 27#define ED2KC2SUDP_H 28 29enum OP_ClientToServerUDP { 30 OP_GLOBSEARCHREQ3 = 0x90, // <1 tag set><search_tree> 31 OP_GLOBSEARCHREQ2 = 0x92, // <search_tree> 32 OP_GLOBGETSOURCES2 = 0x94, // <HASH 16><FILESIZE 4> 33 // largefiles only: <HASH 16><FILESIZE 4(0)><FILESIZE 8> (17.8) 34 OP_GLOBSERVSTATREQ = 0x96, // (null) 35 OP_GLOBSERVSTATRES = 0x97, // <USER 4><FILES 4> 36 OP_GLOBSEARCHREQ = 0x98, // <search_tree> 37 OP_GLOBSEARCHRES = 0x99, // 38 OP_GLOBGETSOURCES = 0x9A, // <HASH 16> 39 OP_GLOBFOUNDSOURCES = 0x9B, // 40 OP_GLOBCALLBACKREQ = 0x9C, // <IP 4><PORT 2><client_ID 4> 41 OP_INVALID_LOWID = 0x9E, // <ID 4> 42 OP_SERVER_LIST_REQ = 0xA0, // <IP 4><PORT 2> 43 OP_SERVER_LIST_RES = 0xA1, // <count 1> (<ip 4><port 2>)[count] 44 OP_SERVER_DESC_REQ = 0xA2, // (null) 45 OP_SERVER_DESC_RES = 0xA3, // <name_len 2><name name_len><desc_len 2 desc_en> 46 OP_SERVER_LIST_REQ2 = 0xA4 // (null) 47}; 48 49// Server UDP flags 50#define SRV_UDPFLG_EXT_GETSOURCES 0x00000001 51#define SRV_UDPFLG_EXT_GETFILES 0x00000002 52#define SRV_UDPFLG_NEWTAGS 0x00000008 53#define SRV_UDPFLG_UNICODE 0x00000010 54#define SRV_UDPFLG_EXT_GETSOURCES2 0x00000020 55#define SRV_UDPFLG_LARGEFILES 0x00000100 56#define SRV_UDPFLG_UDPOBFUSCATION 0x00000200 57#define SRV_UDPFLG_TCPOBFUSCATION 0x00000400 58 59#endif // ED2KC2SUDP_H 60