Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
opcua.ua.uaprotocol_hand.MessageChunk Class Reference

List of all members.

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__

Detailed Description

Message Chunk, as described in OPC UA specs Part 6, 6.7.2.

Definition at line 348 of file uaprotocol_hand.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Definition at line 403 of file uaprotocol_hand.py.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Sat Jun 8 2019 18:26:25