public class NioTcpMessageProcessor extends ConnectionOrientedMessageProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
NioTcpMessageProcessor.ChangeRequest |
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|---|
void |
assignChannelToDestination(HostPort targetHostPort,
NioTcpMessageChannel channel) |
SocketChannel |
blockingConnect(InetSocketAddress address,
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 com.telestax.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.
|
void |
send(SocketChannel socket,
byte[] data) |
void |
start()
Start our thread.
|
void |
stop()
Stop method.
|
cacheMessageChannel, closeReliableConnection, getMaximumMessageSize, getSIPStack, inUse, remove, 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
public NioTcpMessageProcessor(InetAddress ipAddress, SIPTransactionStack sipStack, int port)
public void assignChannelToDestination(HostPort targetHostPort, NioTcpMessageChannel channel)
public SocketChannel blockingConnect(InetSocketAddress address, int timeout) throws IOException
IOExceptionpublic void send(SocketChannel socket, byte[] data)
public 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 MessageProcessorIOExceptionpublic int getDefaultTargetPort()
MessageProcessorgetDefaultTargetPort in class MessageProcessorpublic boolean isSecure()
MessageProcessorisSecure in class MessageProcessorpublic void start()
throws IOException
MessageProcessorstart in class MessageProcessorIOExceptionprotected com.telestax.javax.sip.stack.NioTcpMessageProcessor.ProcessorTask createProcessorTask()
public void stop()
MessageProcessorstop in class MessageProcessorCopyright © 2014. All Rights Reserved.