Package com.biglybt.net.udp.uc
Class PRUDPPacket
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
- Direct Known Subclasses:
PRUDPPacketReply
,PRUDPPacketRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InetSocketAddress
private static AEMonitor
static final int
static final int
private static int
private PRUDPPacket
private int
private int
private int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PRUDPPacket
(int _type) protected
PRUDPPacket
(int _type, int _transaction_id) -
Method Summary
Modifier and TypeMethodDescriptionint
protected byte
getMinimumProtocolVersion
(int network) int
int
boolean
abstract void
void
setAddress
(InetSocketAddress _address) void
void
setSerialisedSize
(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
-