FileDocCategorySizeDatePackage
VersionCheckClientUDPRequest.javaAPI DocAzureus 3.0.3.42351Wed Nov 29 12:54:04 GMT 2006com.aelitis.azureus.core.versioncheck

VersionCheckClientUDPRequest

public class VersionCheckClientUDPRequest extends com.aelitis.net.udp.uc.PRUDPPacketRequest

Fields Summary
private Map
payload
Constructors Summary
public VersionCheckClientUDPRequest(long connection_id)

		super( VersionCheckClientUDPCodecs.ACT_VERSION_REQUEST, connection_id );
	
protected VersionCheckClientUDPRequest(DataInputStream is, long connection_id, int trans_id)

		super( VersionCheckClientUDPCodecs.ACT_VERSION_REQUEST, connection_id, trans_id );
		
		short	len = is.readShort();
		
		if ( len <= 0 ){
			
			throw( new IOException( "invalid length" ));
		}
		
		byte[]	bytes = new byte[len];
		
		is.read( bytes );
		
		payload = BDecoder.decode( bytes );
	
Methods Summary
public java.util.MapgetPayload()

		return( payload );
	
public java.lang.StringgetString()

		return( super.getString());
	
public voidserialise(java.io.DataOutputStream os)

		super.serialise(os);
		
		byte[]	bytes = BEncoder.encode( payload );
		
		os.writeShort( (short)bytes.length );
		
		os.write( bytes );
	
public voidsetPayload(java.util.Map _payload)

		payload	= _payload;