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...
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:
-
The documentation for this class was generated from the following file:
- src/org/ccnx/ccn/impl/CCNNetworkChannel.java