public class ConnectionId extends Identifier
id
Constructor and Description |
---|
ConnectionId(ConnectionId conn_id)
Creates a new ConnectionId.
|
ConnectionId(SipTransportConnection conn)
Creates a new ConnectionId.
|
ConnectionId(java.lang.String protocol,
IpAddress remote_ipaddr,
int remote_port)
Creates a new ConnectionId.
|
ConnectionId(java.lang.String protocol,
SocketAddress remote_soaddr)
Creates a new ConnectionId.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProtocol()
Gets the transport protocol.
|
equals, hashCode, toString
public ConnectionId(ConnectionId conn_id)
conn_id
- a connection identifierpublic ConnectionId(java.lang.String protocol, IpAddress remote_ipaddr, int remote_port)
protocol
- the transport protocolremote_ipaddr
- the remote IP addressremote_port
- the remote portpublic ConnectionId(java.lang.String protocol, SocketAddress remote_soaddr)
protocol
- the transport protocolremote_soaddr
- the remote socket addresspublic ConnectionId(SipTransportConnection conn)
conn
- a connection