Methods Summary |
---|
protected long | getClockSkew()
return( skew );
|
public long | getConnectionId()
return( connection_id );
|
public int | getNetwork()
return( network );
|
protected DHTNetworkPosition[] | getNetworkPositions()
return( network_positions );
|
public byte | getProtocolVersion()
return( protocol_version );
|
public java.lang.String | getString()
return( super.getString() + ",[con="+connection_id+",prot=" + protocol_version + ",ven=" + vendor_id + ",net="+network+"]");
|
protected int | getTargetInstanceID()
return( target_instance_id );
|
public DHTTransportUDPImpl | getTransport()
return( transport );
|
protected byte | getVendorID()
return( vendor_id );
|
public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
// add to this and you need to adjust HEADER_SIZE above
os.writeLong( connection_id );
os.writeByte( protocol_version );
if ( protocol_version >= DHTTransportUDP.PROTOCOL_VERSION_VENDOR_ID ){
os.writeByte( DHTTransportUDP.VENDOR_ID_ME );
}
if ( protocol_version >= DHTTransportUDP.PROTOCOL_VERSION_NETWORKS ){
os.writeInt( network );
}
os.writeInt( target_instance_id );
|
public void | setNetwork(int _network)
network = _network;
|
protected void | setNetworkPositions(DHTNetworkPosition[] _network_positions)
network_positions = _network_positions;
|