tuweni / org.apache.tuweni.scuttlebutt.discovery / LocalIdentity / <init>

<init>

LocalIdentity(ip: String, port: String, id: Identity)

Constructor for a local identity

Parameters

ip - the IP address associated with this local identity

port - the port associated with this local identity

id - the identity

Exceptions

NumberFormatException - if the port does not represent a number

IllegalArgumentException - if the port is not in the valid port range 0-65536

LocalIdentity(ip: String, port: Int, id: Identity)

Constructor for a local identity

Parameters

ip - the IP address associated with this local identity

port - the port associated with this local identity

id - the identity

Exceptions

IllegalArgumentException - if the port is not in the valid port range 0-65536

LocalIdentity(addr: InetSocketAddress, id: Identity)

Constructor for a local identity

Parameters

addr - the address associated with this local identity

id - the identity

Exceptions

NumberFormatException - if the port does not represent a number

IllegalArgumentException - if the port is not in the valid port range 0-65536