|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.javax.sip.stack.MessageProcessor | +--gov.nist.javax.sip.stack.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).
Method Summary | |
MessageChannel |
createMessageChannel(HostPort targetHostPort)
Create and return new TCPMessageChannel for the given host/port. |
MessageChannel |
createMessageChannel(InetAddress host,
int port)
Create a message channel for the specified host/port. |
int |
getDefaultTargetPort()
Default target port for TCP |
int |
getMaximumMessageSize()
TCP can handle an unlimited number of bytes. |
String |
getNAPTRService()
TCP NAPTR service name. |
int |
getPort()
Returns the port that we are listening on. |
SIPStack |
getSIPStack()
Returns the stack. |
String |
getSRVPrefix()
TCP SRV prefix. |
String |
getTransport()
Return the transport string. |
boolean |
inUse()
Return true if there are pending messages to be processed (which prevents the message channel from being closed). |
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.MessageProcessor |
getViaHeader |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 int getPort()
getPort
in class MessageProcessor
public SIPStack getSIPStack()
getSIPStack
in class MessageProcessor
public void stop()
stop
in class MessageProcessor
public MessageChannel createMessageChannel(HostPort targetHostPort) throws IOException
createMessageChannel
in class MessageProcessor
IOException
public MessageChannel createMessageChannel(InetAddress host, int port) throws IOException
MessageProcessor
createMessageChannel
in class MessageProcessor
IOException
public int getMaximumMessageSize()
getMaximumMessageSize
in class MessageProcessor
public String getNAPTRService()
public String getSRVPrefix()
public boolean inUse()
MessageProcessor
inUse
in class MessageProcessor
public int getDefaultTargetPort()
getDefaultTargetPort
in class MessageProcessor
public boolean isSecure()
isSecure
in class MessageProcessor
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |