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: 2.0.0
Syntax
public class Packet

The Packet type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyChecksum
Gets or sets the checksum for the data in 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 methodFinalize
Allows 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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Reads packet data from a BinaryReader.
Public methodToString
Returns 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