HdlcFrame Class
Static class that can parse birary data into HDLC structures and create binary data from HDLC structures.
It implements Point-to-Point Protocol HDLC frames of frame format 3.
Namespace: OddPrg.Protocols.HdlcAssembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
public static class HdlcFrame
- Inheritance
- Object HdlcFrame
Create_DISC |
Create DISC frame to disconnect data link
|
Create_I |
Create I frame which is used as request. It means that it is the only frame sent to the server and response from the server
is expected.
|
Create_REJ |
Create REJ frame for negative acknowledgement
|
Create_RR |
Create RR frame for receive acknowledgement
|
Create_SRNM |
Create SRNM frame to set up HDLC communication.
|
Create_Test |
Create Test frame.
|
Create_UI |
Create unnumbered information frame.
|
GetControField |
Returns control field of valid HDLC frame type 3. Frame validity is not checked.
|
GetNext(ByteBuffer) |
Returns the next frame of type 3 from the start of rawData. Procedure skips any starting bytes before starting flag (7E).
|
GetNext(ByteBuffer, Int32) |
Returns the next frame of type 3 from the start of rawData. The terminating flag could not be returned if
multiple frames are linked together. Procedure skips any starting bytes before starting flag (7E).
|
GetNext(ByteBuffer, Int32, String, Int32) |
Returns the next frame of type 3 from rawData, starting at index startIndex. The terminating flag could not be returned if
multiple frames are linked together. Procedure skips any starting bytes before starting flag (7E). Procedure updates startIndex to the beginning
of a next frame.
|
IsPollBitSet |
Returns true if frame has its poll bit set, otherwise returns false.
|
Parse |
Parse a HDLC frame into its prats. It is supposed that frame parameter contains a valid HDLC frame of type 3. The validity can be checked
using GetNext method.
|