// // 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 ED2KC2CTCP_H #define ED2KC2CTCP_H // Client <-> Client enum ED2KStandardClientTCP { OP_HELLO = 0x01, // 0x10<1 Tag_set> OP_SENDINGPART = 0x46, // OP_REQUESTPARTS = 0x47, // OP_FILEREQANSNOFIL = 0x48, // OP_END_OF_DOWNLOAD = 0x49, // // Unused for sending OP_ASKSHAREDFILES = 0x4A, // (null) OP_ASKSHAREDFILESANSWER = 0x4B, // (<1 Tag_set>)[count] OP_HELLOANSWER = 0x4C, // <1 Tag_set> OP_CHANGE_CLIENT_ID = 0x4D, // // Unused for sending OP_MESSAGE = 0x4E, // OP_SETREQFILEID = 0x4F, // OP_FILESTATUS = 0x50, // OP_HASHSETREQUEST = 0x51, // OP_HASHSETANSWER = 0x52, // OP_STARTUPLOADREQ = 0x54, // OP_ACCEPTUPLOADREQ = 0x55, // (null) OP_CANCELTRANSFER = 0x56, // (null) OP_OUTOFPARTREQS = 0x57, // (null) OP_REQUESTFILENAME = 0x58, // (more correctly file_name_request) OP_REQFILENAMEANSWER = 0x59, // OP_CHANGE_SLOT = 0x5B, // // Not used for sending OP_QUEUERANK = 0x5C, // (slot index of the request) // Not used for sending OP_ASKSHAREDDIRS = 0x5D, // (null) OP_ASKSHAREDFILESDIR = 0x5E, // OP_ASKSHAREDDIRSANS = 0x5F, // ()[count] OP_ASKSHAREDFILESDIRANS = 0x60, // (<1 T OP_ASKSHAREDDENIEDANS = 0x61 // (null) }; // Extended prot client <-> Extended prot client enum ED2KExtendedClientTCP { OP_EMULEINFO = 0x01, // OP_EMULEINFOANSWER = 0x02, // OP_COMPRESSEDPART = 0x40, // OP_QUEUERANKING = 0x60, // OP_FILEDESC = 0x61, // OP_VERIFYUPSREQ = 0x71, // (never used) OP_VERIFYUPSANSWER = 0x72, // (never used) OP_UDPVERIFYUPREQ = 0x73, // (never used) OP_UDPVERIFYUPA = 0x74, // (never used) OP_REQUESTSOURCES = 0x81, // OP_ANSWERSOURCES = 0x82, // OP_REQUESTSOURCES2 = 0x83, // OP_ANSWERSOURCES2 = 0x84, // OP_PUBLICKEY = 0x85, // OP_SIGNATURE = 0x86, // v1: // v2: OP_SECIDENTSTATE = 0x87, // OP_REQUESTPREVIEW = 0x90, // // Never used for sending on aMule OP_PREVIEWANSWER = 0x91, // {frames * } // Never used for sending on aMule OP_MULTIPACKET = 0x92, OP_MULTIPACKETANSWER = 0x93, // OP_PEERCACHE_QUERY = 0x94, // Unused on aMule - no PeerCache // OP_PEERCACHE_ANSWER = 0x95, // Unused on aMule - no PeerCache // OP_PEERCACHE_ACK = 0x96, // Unused on aMule - no PeerCache OP_PUBLICIP_REQ = 0x97, OP_PUBLICIP_ANSWER = 0x98, OP_CALLBACK = 0x99, // OP_REASKCALLBACKTCP = 0x9A, OP_AICHREQUEST = 0x9B, // OP_AICHANSWER = 0x9C, // OP_AICHFILEHASHANS = 0x9D, OP_AICHFILEHASHREQ = 0x9E, OP_BUDDYPING = 0x9F, OP_BUDDYPONG = 0xA0, OP_COMPRESSEDPART_I64 = 0xA1, // OP_SENDINGPART_I64 = 0xA2, // OP_REQUESTPARTS_I64 = 0xA3, // OP_MULTIPACKET_EXT = 0xA4, OP_CHATCAPTCHAREQ = 0xA5, OP_CHATCAPTCHARES = 0xA6, }; #endif // ED2KC2CTCP_H