||The header component of a message.|
See RFC3588 section 3. After you have read that understanding the
class is trivial. The only fields and methods you will normally use
Note: The default command flags does not include the proxiable bit, meaning
that request messages by default cannot be proxied by diameter proxies and
other gateways. It is still not determined if this is a reasonable default.
You should always call setProxiable() explicitly so it has the value you
expect it to be.
||Methods defined here:|
- __init__(self, that=None)
- Constructor for MessageHeader.
If 'that' is None then the command flags are initialized to
answer+not-proxiable+not-error+not-retransmit, also known as 0,
and the command_code, application_id, hop_by_hop_identifier and
end_to_end_identifier are initialized to 0.
- decode(self, unpacker)
- encode(self, packer, message_length)
- prepareResponse(self, request)
- Prepare a response from the specified request header.
The proxiable flag is copied - the other flags are cleared.
The command_code, application_id, hop_by_hop_identifier,
end_to_end_identifier and 'proxyable' command flag
are copied. The 'request', 'error' and 'retransmit' bits are cleared.
- setError(self, f)
- Set error bit. See RFC3588 section 3 page 32 before you set this.
- setProxiable(self, f)
- setRequest(self, f)
- setRetransmit(self, f)
- Set retransmit bit
Data and other attributes defined here:
- command_flag_error_bit = 32
- command_flag_proxiable_bit = 64
- command_flag_request_bit = 128
- command_flag_retransmit_bit = 16