public class TcpTransport extends SipTransportCO
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTO_TCP
TCP protocol type
|
connections, listener, logger, this_conn_listener
Constructor and Description |
---|
TcpTransport(int local_port,
int nmax_connections,
Logger logger)
Creates a new TcpTransport
|
TcpTransport(int local_port,
IpAddress host_ipaddr,
int nmax_connections,
Logger logger)
Creates a new TcpTransport
|
Modifier and Type | Method and Description |
---|---|
protected SipTransportConnection |
createTransportConnection(SocketAddress remote_soaddr)
Creates a transport connection to the remote end-point.
|
int |
getLocalPort()
Gets local port
|
java.lang.String |
getProtocol()
Gets protocol type
|
void |
halt()
Stops running
|
java.lang.String |
toString()
Gets a String representation of the Object
|
addConnection, addConnection, isForceSentBySet, processConnectionTerminated, processReceivedMessage, removeConnection, sendMessage, sendMessageCO, setForceSentBy, setListener, setManualConnectionMode
public static final java.lang.String PROTO_TCP
public TcpTransport(int local_port, int nmax_connections, Logger logger) throws java.io.IOException
java.io.IOException
public java.lang.String getProtocol()
getProtocol
in interface SipTransport
getProtocol
in class SipTransportCO
public int getLocalPort()
public void halt()
halt
in interface SipTransport
halt
in class SipTransportCO
protected SipTransportConnection createTransportConnection(SocketAddress remote_soaddr) throws java.io.IOException
createTransportConnection
in class SipTransportCO
java.io.IOException
public java.lang.String toString()
toString
in interface SipTransport
toString
in class java.lang.Object