Package zombie.network.packets
Class RequestDataPacket
java.lang.Object
zombie.network.packets.RequestDataPacket
- All Implemented Interfaces:
INetworkPacket
Packet for transmitting data. This packet could transmit large files.
- Since:
- 41.74
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
parse
(ByteBuffer b, UdpConnection connection) void
process
(UdpConnection connection) void
processServer
(PacketTypes.PacketType packetType, UdpConnection connection) void
sendConnectingDetails
(UdpConnection connection, ServerWorldDatabase.LogonResult logonResult) void
void
void
setPartDataParameters
(int bytesSent, int partSize) void
void
void
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.INetworkPacket
getPacketSizeBytes, log
-
Field Details
-
large_file_bb
-
-
Constructor Details
-
RequestDataPacket
public RequestDataPacket()
-
-
Method Details
-
setRequest
public void setRequest() -
setRequest
-
setPartData
-
setPartDataParameters
public void setPartDataParameters(int bytesSent, int partSize) -
setACK
-
sendConnectingDetails
public void sendConnectingDetails(UdpConnection connection, ServerWorldDatabase.LogonResult logonResult) -
parse
- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
processServer
-
process
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
-
getDescription
- Specified by:
getDescription
in interfaceINetworkPacket
-