Class RequestDataPacket
java.lang.Object
zombie.network.packets.RequestDataPacket
- All Implemented Interfaces:
INetworkPacketField
,IDescriptor
,INetworkPacket
Packet for transmitting data. This packet could transmit large files.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isConsistent
(UdpConnection var1) void
parse
(ByteBuffer b, UdpConnection connection) void
processClient
(UdpConnection var1) void
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescription
Methods inherited from interface zombie.network.packets.INetworkPacket
parseClient, parseClientLoading, parseServer, sendToClient, sendToClients, sendToConnection, sendToRelativeClients, sendToServer, setData, sync, tryProcessInternal
Methods inherited from interface zombie.network.fields.INetworkPacketField
getPacketSizeBytes
-
Field Details
-
large_file_bb
-
-
Constructor Details
-
RequestDataPacket
public RequestDataPacket()
-
-
Method Details
-
allocateLargeFileBB
public void allocateLargeFileBB() -
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
- Specified by:
parse
in interfaceINetworkPacketField
-
write
- Specified by:
write
in interfaceINetworkPacketField
-
processServer
- Specified by:
processServer
in interfaceINetworkPacket
-
processClientLoading
- Specified by:
processClientLoading
in interfaceINetworkPacket
-
processClient
- Specified by:
processClient
in interfaceINetworkPacket
-
isConsistent
- Specified by:
isConsistent
in interfaceINetworkPacketField
-