FileDocCategorySizeDatePackage
NetworkAdminNATUDPReply.javaAPI DocAzureus 3.0.3.42278Wed Nov 29 12:54:04 GMT 2006com.aelitis.azureus.core.networkmanager.admin.impl

NetworkAdminNATUDPReply

public class NetworkAdminNATUDPReply extends com.aelitis.net.udp.uc.PRUDPPacketReply

Fields Summary
private Map
payload
Constructors Summary
public NetworkAdminNATUDPReply(int trans_id)

		super( NetworkAdminNATUDPCodecs.ACT_NAT_REPLY, trans_id );
	
protected NetworkAdminNATUDPReply(DataInputStream is, int trans_id)

		super( NetworkAdminNATUDPCodecs.ACT_NAT_REPLY, 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;