|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| 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.UDPMessageProcessor
Sit in a loop and handle incoming udp datagram messages. For each Datagram packet, a new UDPMessageChannel is created (upto the max thread pool size). Each UDP message is processed in its own thread).
| Method Summary | |
MessageChannel |
createMessageChannel(gov.nist.core.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 UDP |
int |
getMaximumMessageSize()
UDP can handle a message as large as the MAX_DATAGRAM_SIZE. |
int |
getPort()
Get port on which to listen for incoming stuff. |
SIPTransactionStack |
getSIPStack()
Returns the stack. |
String |
getTransport()
Return the transport string. |
boolean |
inUse()
Return true if there are any messages in use. |
boolean |
isSecure()
UDP is not a secure protocol. |
void |
run()
Thread main routine. |
void |
start()
Start our processor thread. |
void |
stop()
Shut down the message processor. |
| Methods inherited from class gov.nist.javax.sip.stack.MessageProcessor |
getDefaultPort, getIPAddress, getListeningPoint, getSentBy, getViaHeader, isSentBySet, setListeningPoint, setSentBy |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int getPort()
getPort in class MessageProcessor
public void start()
throws IOException
start in class MessageProcessorIOExceptionpublic void run()
run in interface Runnablerun in class MessageProcessorpublic void stop()
stop in class MessageProcessorpublic String getTransport()
getTransport in class MessageProcessorpublic SIPTransactionStack getSIPStack()
getSIPStack in class MessageProcessor
public MessageChannel createMessageChannel(gov.nist.core.HostPort targetHostPort)
throws UnknownHostException
createMessageChannel in class MessageProcessorUnknownHostException
public MessageChannel createMessageChannel(InetAddress host,
int port)
throws IOException
MessageProcessor
createMessageChannel in class MessageProcessorIOExceptionpublic int getDefaultTargetPort()
getDefaultTargetPort in class MessageProcessorpublic boolean isSecure()
isSecure in class MessageProcessorpublic int getMaximumMessageSize()
getMaximumMessageSize in class MessageProcessorpublic boolean inUse()
inUse in class MessageProcessor
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||