|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a unique IP network listening point, which consists of port and transport. A ListeningPoint is a Java representation of the port that a SipProvider messaging entity uses to send and receive messages.
For any address and port that a server listens on for UDP, it MUST listen on that same port and address for TCP. This is because a message may need to be sent using TCP, rather than UDP, if it is too large. To handle this a Listening point with the same port but with TCP transport would be created and attached to a new SipProvider, upon which the SipListener is registered. However the converse is not true, a server need not listen for UDP on a particular address and port just because it is listening on that same address and port for TCP.
ListeningPoints can be created from the
SipStack.createListeningPoint(int, String)
. A SipStack object may
have multiple ListeningPoints, while a SipProvider as a messaging entity
may only have a single ListeningPoint.
Field Summary | |
static int |
PORT_5060
Port Constant: Default port 5060. |
static int |
PORT_5061
Port Constant: Default port 5061. |
static java.lang.String |
SCTP
Transport constant: SCTP |
static java.lang.String |
TCP
Transport constant: TCP |
static java.lang.String |
TLS
Transport constant: TLS over TCP |
static java.lang.String |
UDP
Transport constant: UDP |
Method Summary | |
boolean |
equals(java.lang.Object obj)
This method indicates whether the specified object is equal to this Listening Point. |
int |
getPort()
Gets the port of the ListeningPoint. |
java.lang.String |
getTransport()
Gets the transport of the ListeningPoint. |
Field Detail |
public static final java.lang.String TCP
public static final java.lang.String UDP
public static final java.lang.String SCTP
public static final java.lang.String TLS
public static final int PORT_5060
public static final int PORT_5061
Method Detail |
public int getPort()
public java.lang.String getTransport()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- - the object with which to compare this ListeningPoint.
|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |