Click or drag to resize

Packet Class

Represents a part of a block.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.DfsPacket

Namespace: Ookii.Jumbo.Dfs
Assembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public class Packet

The Packet type exposes the following members.

Constructors
 NameDescription
Public methodPacket Initializes a new instance of the Packet class with no data.
Public methodPacket(Byte, Int32, Int64, Boolean) Initailizes a new instance of the Packet class with the specified data.
Top
Properties
 NameDescription
Public propertyChecksum Gets or sets the checksum for the data in this packet.
Public propertyData Gets the valid data for this packet.
Public propertyIsLastPacket Gets or sets a value that indicates whether this packet is the last packet being sent.
Public propertySequenceNumber Gets or sets the sequence number of the packet.
Public propertySize Gets or sets the size of the packet.
Top
Methods
 NameDescription
Public methodClear Clears this instance.
Public methodCopyFrom(Packet) Resets the data in the packet using the data from the specified packet.
Public methodCopyFrom(Stream, Int64, Boolean) Resets the data in the packet using the specified stream.
Public methodCopyFrom(Byte, Int32, Int64, Boolean) Resets the data in the packet using the specified data.
Public methodCopyTo Copies the packet's data to the specified buffer.
Public methodEquals Compares this Packet with another object.
(Overrides ObjectEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Gets a hash code for this object.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRead Reads packet data from a BinaryReader.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite Writes the packet to the specified BinaryWriter.
Public methodWriteDataOnly Writes the packet data, without any header, to the specified Stream.
Top
Fields
 NameDescription
Public fieldStatic memberPacketSize The size of a single packet.
Top
Remarks
Packets are the unit in which block data is stored and transferred over the network. Checksums are computed and stored on a per-packet basis, and each write or read request to a data server must always involve a whole number of packets. All packets except the last must equal PacketSize.
See Also