public final class DhtPktAlert extends AbstractAlert<dht_pkt_alert>
| Modifier and Type | Class and Description |
|---|---|
static class |
DhtPktAlert.Direction |
alertALL_CATEGORIES, BLOCK_PROGRESS_NOTIFICATION, DEBUG_NOTIFICATION, DHT_LOG_NOTIFICATION, DHT_NOTIFICATION, DHT_OPERATION_NOTIFICATION, ERROR_NOTIFICATION, FILE_PROGRESS_NOTIFICATION, INCOMING_REQUEST_NOTIFICATION, IP_BLOCK_NOTIFICATION, PEER_LOG_NOTIFICATION, PEER_NOTIFICATION, PERFORMANCE_WARNING, PICKER_LOG_NOTIFICATION, PIECE_PROGRESS_NOTIFICATION, PORT_MAPPING_LOG_NOTIFICATION, PORT_MAPPING_NOTIFICATION, SESSION_LOG_NOTIFICATION, STATS_NOTIFICATION, STATUS_NOTIFICATION, STORAGE_NOTIFICATION, TORRENT_LOG_NOTIFICATION, TRACKER_NOTIFICATION, UPLOAD_NOTIFICATION| Modifier and Type | Method and Description |
|---|---|
DhtPktAlert.Direction |
direction()
Whether this is an incoming or outgoing packet.
|
UdpEndpoint |
node()
The DHT node we received this packet from, or sent this packet to
(depending on
direction()). |
byte[] |
pktBuf()
Returns a copy of the packet buffer and size of the packet,
respectively.
|
public byte[] pktBuf()
public DhtPktAlert.Direction direction()
public UdpEndpoint node()
direction()).