All applications have to have some kind of outer blcok.
This is ...
This is ...
This is ...
This is ...
Parameters: | args – a list of clients and servers to bind together in a stack |
---|
A Protocol Data Unit (PDU) is the name for a collection of information that is passed between two entities. It is composed of Protcol Control Information (PCI), which usually has information about addressing and other types of processing instructions, and data. The set of classes in this module are not specific to BACnet.
The source of a PDU. The datatype and composition of the address is dependent on the client/server relationship and protocol context. The source may be None, in which case it has no source or the source is implicit.
The destination of a PDU. The datatype and composition of the address is dependent on the client/server relationship and protocol context. The destination may be None, in which case it has no destination or the destination is implicit.
Parameters: |
|
---|
Protocol Control Information is generally the context information and/or other types of processing instructions.
This attribute typically holds a simple octet string, but for higher layers of a protocol stack it may contain more abstract pieces or components.
Extract a single octet from the front of the data. If the octet string is empty this will raise a DecodingError.
Parameters: | len (integer) – the number of octets to extract off the front |
---|
Extract a number of octets from the front of the data. If there are not at least len octets this will raise a DecodingError exception.
Parameters: | ch (octet) – the octet to append to the end |
---|
Parameters: | data (string) – the octet string to append to the end |
---|
The PDUData class has functions for gathering information from the front of the octet string, or putting information on the end. These are helper functions but may not be applicable for higher layer protocols which may be passing significantly more complex data.
The PDU class combines the PCI and PDUData classes together into one object.