|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
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 String |
SCTP
Transport constant: SCTP |
static String |
TCP
Transport constant: TCP |
static String |
TLS
Transport constant: TLS over TCP |
static String |
UDP
Transport constant: UDP |
Method Summary | |
boolean |
equals(Object obj)
This method indicates whether the specified object is equal to this Listening Point. |
int |
getPort()
Gets the port of the ListeningPoint. |
String |
getTransport()
Gets the transport of the ListeningPoint. |
Field Detail |
public static final String TCP
public static final String UDP
public static final String SCTP
public static final String TLS
public static final int PORT_5060
public static final int PORT_5061
Method Detail |
public int getPort()
public String getTransport()
public boolean equals(Object obj)
equals
in class Object
obj
- - the object with which to compare this ListeningPoint.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |