|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.javax.sip.stack.MessageProcessor
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).
| メソッドの概要 | |
|---|---|
MessageChannel |
createMessageChannel(HostPort targetHostPort)
Create a message channel for the specified host/port. |
MessageChannel |
createMessageChannel(java.net.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. |
java.lang.String |
getNAPTRService()
TCP NAPTR service name. |
int |
getPort()
Returns the port that we are listening on. |
SIPMessageStack |
getSIPStack()
Returns the stack. |
java.lang.String |
getSRVPrefix()
TCP SRV prefix. |
java.lang.Thread |
getThread()
Return our thread. |
java.lang.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. |
| クラス gov.nist.javax.sip.stack.MessageProcessor から継承されたメソッド |
|---|
getViaHeader |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public void start()
throws java.io.IOException
MessageProcessor 内の startjava.io.IOExceptionpublic java.lang.Thread getThread()
MessageProcessor 内の getThreadpublic void run()
java.lang.Runnable 内の runMessageProcessor 内の runpublic java.lang.String getTransport()
MessageProcessor 内の getTransportpublic int getPort()
MessageProcessor 内の getPortpublic SIPMessageStack getSIPStack()
MessageProcessor 内の getSIPStackpublic void stop()
MessageProcessor 内の stop
public MessageChannel createMessageChannel(HostPort targetHostPort)
throws java.io.IOException
MessageProcessor の記述:
MessageProcessor 内の createMessageChanneljava.io.IOException
public MessageChannel createMessageChannel(java.net.InetAddress host,
int port)
throws java.io.IOException
MessageProcessor の記述:
MessageProcessor 内の createMessageChanneljava.io.IOExceptionpublic int getMaximumMessageSize()
MessageProcessor 内の getMaximumMessageSizepublic java.lang.String getNAPTRService()
public java.lang.String getSRVPrefix()
public boolean inUse()
MessageProcessor の記述:
MessageProcessor 内の inUsepublic int getDefaultTargetPort()
MessageProcessor 内の getDefaultTargetPortpublic boolean isSecure()
MessageProcessor 内の isSecure
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||