public interface Connection
Channel
is
being used.Modifier and Type | Method and Description |
---|---|
boolean |
connect() |
java.lang.String |
getLocalIpAddress()
Get the local ip-address to which this
Connection is listening to
as a String . |
int |
getLocalPort()
Get the local port to which this
Connection is listening to. |
byte[] |
getRawLocalIpAddress()
Get the local ip-address to which this
Connection is listening to
as a byte-array. |
byte[] |
getRawRemoteIpAddress()
Get the remote ip-address to which this
Connection is connected
to as a byte-array. |
java.net.InetSocketAddress |
getRemoteAddress()
Get the remote address to which this
Connection is connected to. |
java.lang.String |
getRemoteIpAddress()
Get the remote ip-address to which this
Connection is connected
to as a String . |
int |
getRemotePort()
Get the remote port to which this
Connection is connected to. |
boolean |
isSCTP()
Check whether or not this
Connection is using SCTP as its
underlying transport protocol. |
boolean |
isTCP()
Check whether or not this
Connection is using TCP as its
underlying transport protocol. |
boolean |
isTLS()
Check whether or not this
Connection is using TLS as its
underlying transport protocol. |
boolean |
isUDP()
Check whether or not this
Connection is using UDP as its
underlying transport protocol. |
boolean |
isWS()
Check whether or not this
Connection is using websocket as its
underlying transport protocol. |
void |
send(io.pkts.packet.sip.SipMessage msg)
Send a message over this connection.
|
int getLocalPort()
Connection
is listening to.byte[] getRawLocalIpAddress()
Connection
is listening to
as a byte-array.java.lang.String getLocalIpAddress()
Connection
is listening to
as a String
.java.net.InetSocketAddress getRemoteAddress()
Connection
is connected to.int getRemotePort()
Connection
is connected to.byte[] getRawRemoteIpAddress()
Connection
is connected
to as a byte-array.java.lang.String getRemoteIpAddress()
Connection
is connected
to as a String
.boolean isUDP()
Connection
is using UDP as its
underlying transport protocol.boolean isTCP()
Connection
is using TCP as its
underlying transport protocol.boolean isTLS()
Connection
is using TLS as its
underlying transport protocol.boolean isSCTP()
Connection
is using SCTP as its
underlying transport protocol.boolean isWS()
Connection
is using websocket as its
underlying transport protocol.void send(io.pkts.packet.sip.SipMessage msg)
msg
- boolean connect()
Copyright © 2015. All Rights Reserved.