|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.javax.sip.stack.MessageProcessor
gov.nist.javax.sip.stack.ConnectionOrientedMessageProcessor
gov.nist.javax.sip.stack.TCPMessageProcessor
public class TCPMessageProcessor
Sit in a loop waiting for incoming tcp connections and start a new thread to handle each new connection. This is the active object that creates new TCP MessageChannels (one for each new accept socket).
Field Summary |
---|
Fields inherited from class gov.nist.javax.sip.stack.ConnectionOrientedMessageProcessor |
---|
incomingMessageChannels, isRunning, messageChannels, nConnections, sock, useCount |
Fields inherited from class gov.nist.javax.sip.stack.MessageProcessor |
---|
IN_ADDR_ANY, IN6_ADDR_ANY, sipStack, transport |
Constructor Summary | |
---|---|
protected |
TCPMessageProcessor(InetAddress ipAddress,
SIPTransactionStack sipStack,
int port)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class gov.nist.javax.sip.stack.ConnectionOrientedMessageProcessor |
---|
cacheMessageChannel, closeReliableConnection, getMaximumMessageSize, getSIPStack, inUse, remove, setKeepAliveTimeout, validatePortInRange |
Methods inherited from class gov.nist.javax.sip.stack.MessageProcessor |
---|
getDefaultPort, getIpAddress, getListeningPoint, getPort, getSavedIpAddress, getSentBy, getViaHeader, initialize, isSentBySet, setIpAddress, setListeningPoint, setSentBy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TCPMessageProcessor(InetAddress ipAddress, SIPTransactionStack sipStack, int port)
sipStack
- SIPStack structure.port
- port where this message processor listens.Method Detail |
---|
public void start() throws IOException
start
in class MessageProcessor
IOException
public void run()
run
in interface Runnable
run
in class MessageProcessor
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |