public class NioTcpMessageProcessor extends ConnectionOrientedMessageProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
NioTcpMessageProcessor.ChangeRequest |
static class |
NioTcpMessageProcessor.PendingData |
| Modifier and Type | Field and Description |
|---|---|
protected Queue<NioTcpMessageProcessor.ChangeRequest> |
changeRequests |
protected ServerSocketChannel |
channel |
protected NIOHandler |
nioHandler |
protected Selector |
selector |
protected Thread |
selectorThread |
incomingMessageChannels, isRunning, messageChannels, nConnections, sock, useCountIN_ADDR_ANY, IN6_ADDR_ANY, sipStack, transport| Constructor and Description |
|---|
NioTcpMessageProcessor(InetAddress ipAddress,
SIPTransactionStack sipStack,
int port) |
| Modifier and Type | Method and Description |
|---|---|
SocketChannel |
connect(InetSocketAddress address,
InetAddress localAddress,
int timeout) |
MessageChannel |
createMessageChannel(HostPort targetHostPort)
Create a message channel for the specified host/port.
|
MessageChannel |
createMessageChannel(InetAddress targetHost,
int port)
Create a message channel for the specified host/port.
|
NioTcpMessageChannel |
createMessageChannel(NioTcpMessageProcessor nioTcpMessageProcessor,
SocketChannel client) |
protected android.gov.nist.javax.sip.stack.NioTcpMessageProcessor.ProcessorTask |
createProcessorTask() |
int |
getDefaultTargetPort()
Default target port used by this processor.
|
boolean |
isSecure()
Flags whether this processor is secure or not.
|
protected void |
remove(ConnectionOrientedMessageChannel messageChannel) |
void |
send(SocketChannel socket,
byte[] data) |
void |
start()
Start our thread.
|
void |
stop()
Stop method.
|
cacheMessageChannel, closeReliableConnection, getMaximumMessageSize, getSIPStack, inUse, setKeepAliveTimeout, validatePortInRangegetDefaultPort, getIpAddress, getListeningPoint, getPort, getSavedIpAddress, getSentBy, getTransport, getViaHeader, initialize, isSentBySet, setIpAddress, setListeningPoint, setSentByprotected Selector selector
protected Thread selectorThread
protected NIOHandler nioHandler
protected ServerSocketChannel channel
protected final Queue<NioTcpMessageProcessor.ChangeRequest> changeRequests
public NioTcpMessageProcessor(InetAddress ipAddress, SIPTransactionStack sipStack, int port)
public SocketChannel connect(InetSocketAddress address, InetAddress localAddress, int timeout) throws IOException
IOExceptionpublic void send(SocketChannel socket, byte[] data) throws IOException
IOExceptionpublic NioTcpMessageChannel createMessageChannel(NioTcpMessageProcessor nioTcpMessageProcessor, SocketChannel client) throws IOException
IOExceptionpublic MessageChannel createMessageChannel(HostPort targetHostPort) throws IOException
MessageProcessorcreateMessageChannel in class MessageProcessorIOExceptionpublic MessageChannel createMessageChannel(InetAddress targetHost, int port) throws IOException
MessageProcessorcreateMessageChannel in class MessageProcessorIOExceptionprotected void remove(ConnectionOrientedMessageChannel messageChannel)
remove in class ConnectionOrientedMessageProcessorpublic int getDefaultTargetPort()
MessageProcessorgetDefaultTargetPort in class MessageProcessorpublic boolean isSecure()
MessageProcessorisSecure in class MessageProcessorpublic void start()
throws IOException
MessageProcessorstart in class MessageProcessorIOExceptionprotected android.gov.nist.javax.sip.stack.NioTcpMessageProcessor.ProcessorTask createProcessorTask()
public void stop()
MessageProcessorstop in class MessageProcessorCopyright © 2018. All Rights Reserved.