- 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:
Joshua Kissoon 2014-05-11 12:36:10 +05:30
parent 06f9eeae43
commit 428cab774b

View File

@ -5,7 +5,6 @@ import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.net.SocketAddress;
import kademlia.message.Streamable; import kademlia.message.Streamable;
/** /**
@ -67,7 +66,7 @@ public class Node implements Streamable
* *
* @return * @return
*/ */
public SocketAddress getSocketAddress() public InetSocketAddress getSocketAddress()
{ {
return new InetSocketAddress(this.inetAddress, this.port); return new InetSocketAddress(this.inetAddress, this.port);
} }