Package mms :: Module wsp_pdu
[hide private]
[frames] | no frames]

Module wsp_pdu

source code

WSP Data Unit structure encoding and decoding classes

Throughout the classes defined in this module, the following "primitive data type" terminology applies, as specified in [5], section 8.1.1:
   Data Type     Definition
   bit           1 bit of data
   octet         8 bits of opaque data
   uint8         8-bit unsigned integer
   uint16        16-bit unsigned integer
   uint32        32-bit unsigned integer
   uintvar       variable length unsigned integer

This Encoder and Decoder classes provided in this module firstly provides public methods for decoding and encoding each of these data primitives (where needed).

Next, they provide methods encapsulating the basic WSP Header encoding rules as defined in section 8.4.2.1 of [5].

Finally, the classes defined here provide methods for decoding/parsing specific WSP header fields.


Author: Francois Aucamp <faucamp@csir.co.za>

License: GNU Lesser General Public License, version 2

Notes:
Classes [hide private]
  WSPEncodingAssignments
Static class containing the constant values defined in [5] for well-known content types, parameter names, etc.
  DecodeError
The decoding operation failed; most probably due to an invalid byte in the sequence provided for decoding
  EncodeError
The encoding operation failed; most probably due to an invalid value provided for encoding
  Decoder
A WSP Data unit decoder
  Encoder
A WSP Data unit decoder