|
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
public class 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, getSavedIpAddress, 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 MessageProcessor
IOException
public void run()
run
in interface Runnable
run
in class MessageProcessor
public void stop()
stop
in class MessageProcessor
public String getTransport()
getTransport
in class MessageProcessor
public SIPTransactionStack getSIPStack()
getSIPStack
in class MessageProcessor
public MessageChannel createMessageChannel(gov.nist.core.HostPort targetHostPort) throws UnknownHostException
createMessageChannel
in class MessageProcessor
UnknownHostException
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
public int getMaximumMessageSize()
getMaximumMessageSize
in class MessageProcessor
public 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 |