mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-11-22 02:02:21 +00:00
Node
- Update the node's getInetAddress method to return InetSocketAddress instead of SocketAddress since we get more methods available with this -- Specifically we get a comparison method which is needed
This commit is contained in:
parent
06f9eeae43
commit
428cab774b
@ -5,7 +5,6 @@ import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.SocketAddress;
|
||||
import kademlia.message.Streamable;
|
||||
|
||||
/**
|
||||
@ -67,7 +66,7 @@ public class Node implements Streamable
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public SocketAddress getSocketAddress()
|
||||
public InetSocketAddress getSocketAddress()
|
||||
{
|
||||
return new InetSocketAddress(this.inetAddress, this.port);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user