(1) Add findnode function in RootingTable.
First. I add findnode function in rootingtable class. This function can search close peer info from target KID to sort KIDs .
(1) KNode have UDP server functionKnode use udp socket to communication between node and node. and use bencode. This term add binding to use udp server and parse message.
(2) KNode have Krpc Message parse function.
MainLine DHT use KRPC protocol with bencode. this term create to prase krpc message . but We had already create bencod barser. It is easy.
(3) KNode have seding message function
When send message, KNode use binded UDPSocket. Received message node can know port and ip to use socket to receive message.
(4) KNode have join network function
KNode send findnode query that k-number close peer in rootingTable.
when receive response, then KNode send findnode query again.
and If you were a certain period of time, to access it again
(5) When receive FindeNode query, KNode send findnode response
PS- GitBook Nazenani Torrent (for japanese)