Upstream tarball 20080304
[amule.git] / src / include / protocol / kad2 / Client2Client / UDP.h
blob543d46391c545e48ee961ae7c70b83d4a420a42f
1 //
2 // This file is part of the aMule Project.
3 //
4 // Copyright (c) 2003-2008 aMule Team ( admin@amule.org / http://www.amule.org )
5 // Copyright (c) 2002 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.
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.
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
26 #ifndef KAD2C2CUDP_H
27 #define KAD2C2CUDP_H
29 enum KademliaV2OPCodes {
30 KADEMLIA2_BOOTSTRAP_REQ = 0x01,
31 KADEMLIA2_BOOTSTRAP_RES = 0x09,
32 KADEMLIA2_HELLO_REQ = 0x11,
33 KADEMLIA2_HELLO_RES = 0x19,
34 KADEMLIA2_REQ = 0x21,
35 KADEMLIA2_RES = 0x29,
36 KADEMLIA2_SEARCH_KEY_REQ = 0x33,
37 KADEMLIA2_SEARCH_NOTES_REQ = 0x35,
38 KADEMLIA2_SEARCH_RES = 0x3B,
39 KADEMLIA2_PUBLISH_KEY_REQ = 0x43,
40 KADEMLIA2_PUBLISH_SOURCE_REQ = 0x44,
41 KADEMLIA2_PUBLISH_NOTES_REQ = 0x45,
42 KADEMLIA2_PUBLISH_RES = 0x4B
45 #endif // KAD2C2CUDP_H