|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.siprop.v2.util.impl.Peer
public class Peer
IP address, port, and protocol name.
Field Summary | |
---|---|
static int |
IPPROTO_TCP
Protocol number for TCP. |
static int |
IPPROTO_UDP
Protocol number for UDP. |
Constructor Summary | |
---|---|
Peer(int protocol,
java.net.InetAddress host,
int port)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
equals. |
java.net.InetAddress |
getAddress()
get ip address. |
java.net.InetAddress |
getHost()
get hostname. |
int |
getPort()
get port. |
int |
getProtocol()
get protocol number. |
int |
hashCode()
get hash code. |
boolean |
isConnectionOrientedProtocol()
check connection oriented protocol. |
boolean |
isInner()
inner flag. |
void |
setInner(boolean isInner)
set inner flag. |
java.lang.String |
toString()
to protocol string. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int IPPROTO_TCP
public static final int IPPROTO_UDP
Constructor Detail |
---|
public Peer(int protocol, java.net.InetAddress host, int port)
protocol
- host
- port
- Method Detail |
---|
public java.net.InetAddress getHost()
public java.net.InetAddress getAddress()
public int getPort()
public int getProtocol()
public boolean isConnectionOrientedProtocol()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isInner()
public void setInner(boolean isInner)
isInner
- inner is true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |