Class PRUDPPacket
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
- Direct Known Subclasses:
PRUDPPacketReply, PRUDPPacketRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InetSocketAddressprivate static AEMonitorstatic final intstatic final intprivate static intprivate PRUDPPacketprivate intprivate intprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPRUDPPacket(int _type) protectedPRUDPPacket(int _type, int _transaction_id) -
Method Summary
Modifier and TypeMethodDescriptionintprotected bytegetMinimumProtocolVersion(int network) intintbooleanabstract voidvoidsetAddress(InetSocketAddress _address) voidvoidsetSerialisedSize(int len)
-
Field Details
-
MAX_PACKET_SIZE
public static final int MAX_PACKET_SIZE- See Also:
-
DEFAULT_UDP_TIMEOUT
public static final int DEFAULT_UDP_TIMEOUT- See Also:
-
next_id
private static int next_id -
class_mon
-
address
-
type
private int type -
transaction_id
private int transaction_id -
previous_packet
-
serialised_size
private int serialised_size
-
-
Constructor Details
-
PRUDPPacket
protected PRUDPPacket(int _type, int _transaction_id) -
PRUDPPacket
protected PRUDPPacket(int _type)
-
-
Method Details
-
setSerialisedSize
public void setSerialisedSize(int len) -
getSerialisedSize
public int getSerialisedSize() -
hasContinuation
public boolean hasContinuation() -
setPreviousPacket
-
getPreviousPacket
-
setAddress
-
getAddress
-
getAction
public int getAction() -
getTransactionId
public int getTransactionId() -
serialise
- Throws:
IOException
-
getMinimumProtocolVersion
protected byte getMinimumProtocolVersion(int network) -
getString
-