public interface PingerFactory
Modifier and Type | Field and Description |
---|---|
static int |
FRAG_FALSE |
static int |
FRAG_TRUE |
static int |
MAX_DSCP |
Modifier and Type | Method and Description |
---|---|
Pinger |
getInstance()
Returns an implementation of the default
Pinger class |
Pinger |
getInstance(int tc,
boolean allowFragmentation)
Returns an implementation of the
Pinger class associated with the
socket configured for the given traffic control and fragmentation bits. |
static final int MAX_DSCP
static final int FRAG_FALSE
static final int FRAG_TRUE
Pinger getInstance()
Pinger
classtc
- the traffic control value to set, use "0" for noneallowFragmentation
- whether to allow fragmentationPinger
object.Pinger getInstance(int tc, boolean allowFragmentation)
Pinger
class associated with the
socket configured for the given traffic control and fragmentation bits.tc
- the traffic control value to set, use "0" for noneallowFragmentation
- whether to allow fragmentationPinger
object.Copyright © 2021. All rights reserved.