DHTUDPPacketRequestStatspublic class DHTUDPPacketRequestStats extends DHTUDPPacketRequest
Fields Summary |
---|
public static final int | STATS_TYPE_ORIGINAL | public static final int | STATS_TYPE_NP_VER2 | private int | stats_type |
Constructors Summary |
---|
public DHTUDPPacketRequestStats(DHTTransportUDPImpl _transport, long _connection_id, DHTTransportUDPContactImpl _local_contact, DHTTransportUDPContactImpl _remote_contact)
super( _transport, DHTUDPPacketHelper.ACT_REQUEST_STATS, _connection_id, _local_contact, _remote_contact );
| protected DHTUDPPacketRequestStats(com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketNetworkHandler network_handler, DataInputStream is, long con_id, int trans_id)
super( network_handler, is, DHTUDPPacketHelper.ACT_REQUEST_STATS, con_id, trans_id );
if ( getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_GENERIC_NETPOS ){
stats_type = is.readInt();
}
super.postDeserialise(is);
|
Methods Summary |
---|
public int | getStatsType()
return( stats_type );
| public java.lang.String | getString()
return( super.getString());
| public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
if ( getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_GENERIC_NETPOS ){
os.writeInt( stats_type );
}
super.postSerialise( os );
| public void | setStatsType(int _type)
stats_type = _type;
|
|