Public Member Functions | |
def | __init__ |
def | __str__ |
def | encrypted_size |
def | to_binary |
Static Public Member Functions | |
def | from_binary |
def | from_header_and_body |
def | max_body_size |
def | message_to_chunks |
Public Attributes | |
Body | |
MessageHeader | |
SecurityHeader | |
SequenceHeader | |
Private Attributes | |
_security_policy | |
Static Private Attributes | |
__repr__ = __str__ |
Message Chunk, as described in OPC UA specs Part 6, 6.7.2.
Definition at line 348 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.__init__ | ( | self, | |
security_policy, | |||
body = b'' , |
|||
msg_type = MessageType.SecureMessage , |
|||
chunk_type = ChunkType.Single |
|||
) |
Definition at line 353 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.__str__ | ( | self | ) |
Definition at line 457 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.encrypted_size | ( | self, | |
plain_size | |||
) |
Definition at line 397 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.from_binary | ( | security_policy, | |
data | |||
) | [static] |
Definition at line 366 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.from_header_and_body | ( | security_policy, | |
header, | |||
buf | |||
) | [static] |
Definition at line 371 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.max_body_size | ( | crypto, | |
max_chunk_size | |||
) | [static] |
Definition at line 413 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.message_to_chunks | ( | security_policy, | |
body, | |||
max_chunk_size, | |||
message_type = MessageType.SecureMessage , |
|||
channel_id = 1 , |
|||
request_id = 1 , |
|||
token_id = 1 |
|||
) | [static] |
Pack message body (as binary string) into one or more chunks. Size of each chunk will not exceed max_chunk_size. Returns a list of MessageChunks. SequenceNumber is not initialized here, it must be set by Secure Channel driver.
Definition at line 419 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.to_binary | ( | self | ) |
Definition at line 403 of file uaprotocol_hand.py.
opcua::ua::uaprotocol_hand.MessageChunk::__repr__ = __str__ [static, private] |
Definition at line 461 of file uaprotocol_hand.py.
Definition at line 353 of file uaprotocol_hand.py.
Definition at line 353 of file uaprotocol_hand.py.
Definition at line 353 of file uaprotocol_hand.py.
Definition at line 353 of file uaprotocol_hand.py.
Definition at line 353 of file uaprotocol_hand.py.