public class TCPMessageProcessor extends ConnectionOrientedMessageProcessor implements Runnable
incomingMessageChannels, isRunning, messageChannels, nConnections, sock, useCount
IN_ADDR_ANY, IN6_ADDR_ANY, sipStack, transport
Modifier | Constructor and Description |
---|---|
protected |
TCPMessageProcessor(InetAddress ipAddress,
SIPTransactionStack sipStack,
int port)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MessageChannel |
createMessageChannel(HostPort targetHostPort)
Create a message channel for the specified host/port.
|
MessageChannel |
createMessageChannel(InetAddress host,
int port)
Create a message channel for the specified host/port.
|
int |
getDefaultTargetPort()
Default target port for TCP
|
String |
getTransport()
Return the transport string.
|
boolean |
isSecure()
TCP is not a secure protocol.
|
void |
run()
Run method for the thread that gets created for each accept socket.
|
void |
start()
Start the processor.
|
void |
stop()
Stop the message processor.
|
cacheMessageChannel, closeReliableConnection, getMaximumMessageSize, getSIPStack, inUse, remove, setKeepAliveTimeout, validatePortInRange
getDefaultPort, getIpAddress, getListeningPoint, getPort, getSavedIpAddress, getSentBy, getViaHeader, initialize, isSentBySet, setIpAddress, setListeningPoint, setSentBy
protected TCPMessageProcessor(InetAddress ipAddress, SIPTransactionStack sipStack, int port)
sipStack
- SIPStack structure.port
- port where this message processor listens.public void start() throws IOException
start
in class MessageProcessor
IOException
public void run()
public String getTransport()
getTransport
in class MessageProcessor
public void stop()
stop
in class MessageProcessor
public MessageChannel createMessageChannel(HostPort targetHostPort) throws IOException
MessageProcessor
createMessageChannel
in class MessageProcessor
IOException
public MessageChannel createMessageChannel(InetAddress host, int port) throws IOException
MessageProcessor
createMessageChannel
in class MessageProcessor
IOException
public int getDefaultTargetPort()
getDefaultTargetPort
in class MessageProcessor
public boolean isSecure()
isSecure
in class MessageProcessor
Copyright © 2017. All Rights Reserved.