public class RtpPortManager extends Object implements PortManager
PortManager that helps to acquire an even port for an RTP channel. The odd port will be reserved for RTCP.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PORT |
static int |
MIN_PORT |
| Constructor and Description |
|---|
RtpPortManager()
|
RtpPortManager(int minimum,
int maximum)
Creates a new Port Manager.
|
| Modifier and Type | Method and Description |
|---|---|
int |
current()
Gets the current port.
|
int |
getHighest()
Gets the upper boundary of available range.
|
int |
getLowest()
Gets the low boundary of available range.
|
int |
next()
Moves to the next available port.
|
int |
peek()
Peeks into the next available port.
|
public static final int MIN_PORT
public static final int MAX_PORT
public RtpPortManager(int minimum,
int maximum)
minimum - The lowest available port.maximum - The highest available port.public RtpPortManager()
public int getLowest()
PortManagergetLowest in interface PortManagerpublic int getHighest()
PortManagergetHighest in interface PortManagerpublic int next()
PortManagernext in interface PortManagerpublic int peek()
PortManagerpeek in interface PortManagerpublic int current()
PortManagercurrent in interface PortManagerCopyright © 2017 TeleStax, Inc.. All Rights Reserved.