org.ccnx.ccn.impl.CCNNetworkChannel.TCPErrorCorrectionStrategy Class Reference

Error recover from receipt of a bad packet which can cause the read to error out in the middle of reading the packet. More...

Inheritance diagram for org.ccnx.ccn.impl.CCNNetworkChannel.TCPErrorCorrectionStrategy:

List of all members.

Public Member Functions

void resync (XMLDecoder decoder)
 Sync to next packet after an error.


Detailed Description

Error recover from receipt of a bad packet which can cause the read to error out in the middle of reading the packet.

For UDP we can just ignore this and skip to the next packet, but for TCP where data is continuous we need to skip over the rest of the bad data so that we can resync on the next good packet.


Member Function Documentation

void org.ccnx.ccn.impl.CCNNetworkChannel.TCPErrorCorrectionStrategy.resync ( XMLDecoder  decoder  ) 

Sync to next packet after an error.

Exceptions:
IOException 


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:44:51 2012 for Content-Centric Networking in Java by  doxygen 1.5.6