// // This file is part of the aMule Project. // // Copyright (c) 2003-2011 aMule Team ( admin@amule.org / http://www.amule.org ) // Copyright (c) 2002-2011 Merkur ( devs@emule-project.net / http://www.emule-project.net ) // // Any parts of this program derived from the xMule, lMule or eMule project, // or contributed by third-party developers are copyrighted by their // respective authors. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA // #ifndef ED2KC2STCP_H #define ED2KC2STCP_H enum OP_ClientToServerTCP { OP_LOGINREQUEST = 0x01, // <1 Tag_set> OP_REJECT = 0x05, // (null) OP_GETSERVERLIST = 0x14, // (null)client->server OP_OFFERFILES = 0x15, // (<1 Tag_set>)[count] OP_SEARCHREQUEST = 0x16, // OP_DISCONNECT = 0x18, // (not verified) OP_GETSOURCES = 0x19, // // v2 (17.3) (mandatory on 17.8) // v2large (17.9) (large files only) OP_SEARCH_USER = 0x1A, // OP_CALLBACKREQUEST = 0x1C, // // OP_QUERY_CHATS = 0x1D, // (deprecated, not supported by server any longer) // OP_CHAT_MESSAGE = 0x1E, // (deprecated, not supported by server any longer) // OP_JOIN_ROOM = 0x1F, // (deprecated, not supported by server any longer) OP_QUERY_MORE_RESULT = 0x21, // (null) OP_GETSOURCES_OBFU = 0x23, OP_SERVERLIST = 0x32, // ()[count] server->client OP_SEARCHRESULT = 0x33, // (<1 Tag_set>)[count] OP_SERVERSTATUS = 0x34, // OP_CALLBACKREQUESTED = 0x35, // OP_CALLBACK_FAIL = 0x36, // (null notverified) OP_SERVERMESSAGE = 0x38, // // OP_CHAT_ROOM_REQUEST = 0x39, // (deprecated, not supported by server any longer) // OP_CHAT_BROADCAST = 0x3A, // (deprecated, not supported by server any longer) // OP_CHAT_USER_JOIN = 0x3B, // (deprecated, not supported by server any longer) // OP_CHAT_USER_LEAVE = 0x3C, // (deprecated, not supported by server any longer) // OP_CHAT_USER = 0x3D, // (deprecated, not supported by server any longer) OP_IDCHANGE = 0x40, // OP_SERVERIDENT = 0x41, // {1 TAG_SET} OP_FOUNDSOURCES = 0x42, // ()[count] OP_USERS_LIST = 0x43, // (<1 Tag_set>)[count] OP_FOUNDSOURCES_OBFU = 0x44 // ((UserHash16 if obf&0x08))[count] }; // Server TCP flags #define SRV_TCPFLG_COMPRESSION 0x00000001 #define SRV_TCPFLG_NEWTAGS 0x00000008 #define SRV_TCPFLG_UNICODE 0x00000010 #define SRV_TCPFLG_RELATEDSEARCH 0x00000040 #define SRV_TCPFLG_TYPETAGINTEGER 0x00000080 #define SRV_TCPFLG_LARGEFILES 0x00000100 #define SRV_TCPFLG_TCPOBFUSCATION 0x00000400 #endif // ED2KC2STCP_H