FileDocCategorySizeDatePackage
PRUDPPacketReplyError.javaAPI DocAzureus 3.0.3.41858Thu Jan 05 05:43:26 GMT 2006org.gudy.azureus2.core3.tracker.protocol.udp

PRUDPPacketReplyError

public class PRUDPPacketReplyError extends com.aelitis.net.udp.uc.PRUDPPacketReply
author
parg

Fields Summary
protected String
message
Constructors Summary
public PRUDPPacketReplyError(int trans_id, String _message)

		super( PRUDPPacketTracker.ACT_REPLY_ERROR, trans_id );
		
		message	= _message;
	
protected PRUDPPacketReplyError(DataInputStream is, int trans_id)

		super( PRUDPPacketTracker.ACT_REPLY_ERROR, trans_id );
		
		int	avail = is.available();
		
		byte[]	data = new byte[avail];
		
		is.read( data );
		
		message	= new String( data );
	
Methods Summary
public java.lang.StringgetMessage()

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

		return( super.getString().concat(",[msg=").concat(message).concat("]"));
	
public voidserialise(java.io.DataOutputStream os)

		super.serialise(os);
		
		byte[]	data = message.getBytes();
		
		os.write( data );