C# Class MarsRover.PacketReconstructor

Mostrar archivo Open project: jpadillak/Concordia_Capstone2013-14 Class Usage Examples

Public Methods

Method 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 method

Return all the packets received
public GetReconstructedPackets ( ) : ArrayList
return System.Collections.ArrayList

PacketReconstructor() public method

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

ReconstructFile() public method

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