C# Class Rover.PacketReconstructor

Afficher le fichier Open project: jpadillak/Concordia_Capstone2013-14 Class Usage Examples

Méthodes publiques

Méthode Description
GetReconstructedPackets ( ) : ArrayList

Return all the packets received

PacketReconstructor ( int PacketSize, PacketReconstructedCBType aPacketReconstructedCBHandler ) : System

Constructor of the packetReconstructor class, remember the packet size, and a callback function.

ReconstructFile ( Packet newPacket ) : void

Reconstruct a file packet by packet, when the last packet is receive the file is created.

Method Details

GetReconstructedPackets() public méthode

Return all the packets received
public GetReconstructedPackets ( ) : ArrayList
Résultat System.Collections.ArrayList

PacketReconstructor() public méthode

Constructor of the packetReconstructor class, remember the packet size, and a callback function.
public PacketReconstructor ( int PacketSize, PacketReconstructedCBType aPacketReconstructedCBHandler ) : System
PacketSize int
aPacketReconstructedCBHandler PacketReconstructedCBType
Résultat System

ReconstructFile() public méthode

Reconstruct a file packet by packet, when the last packet is receive the file is created.
public ReconstructFile ( Packet newPacket ) : void
newPacket Packet
Résultat void