public class Ports extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
static int |
MAX_PORT |
static int |
MIN_DYN_PORT |
public static final int MAX_PORT
public static final int MIN_DYN_PORT
public static final int DEFAULT_PORT
public Ports()
public Ports(int tcpPort,
int udpPort)
protocol - The protocol to bind toexternalAddress - The external address, how other peers will see us. Use null if
you don't want to use external addressexternalTCPPort - The external port, how other peers will see us, if 0 is
provided, a random port will be usedexternalUDPPort - The external port, how other peers will see us, if 0 is
provided, a random port will be usedpublic int tcpPort()
public int udpPort()
public boolean isManualPort()
Copyright © 2014. All rights reserved.