Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
opcua.ua.uaprotocol_hand.MessageChunk Class Reference
Inheritance diagram for opcua.ua.uaprotocol_hand.MessageChunk:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, security_policy, body=b'', msg_type=MessageType.SecureMessage, chunk_type=ChunkType.Single)
 
def __str__ (self)
 
def encrypted_size (self, plain_size)
 
def to_binary (self)
 

Static Public Member Functions

def from_binary (security_policy, data)
 
def from_header_and_body (security_policy, header, buf)
 
def max_body_size (crypto, max_chunk_size)
 
def message_to_chunks (security_policy, body, max_chunk_size, message_type=MessageType.SecureMessage, channel_id=1, request_id=1, token_id=1)
 

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

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 420 of file uaprotocol_hand.py.

def opcua.ua.uaprotocol_hand.MessageChunk.to_binary (   self)

Definition at line 403 of file uaprotocol_hand.py.

Member Data Documentation

opcua.ua.uaprotocol_hand.MessageChunk.__repr__ = __str__
staticprivate

Definition at line 461 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.MessageChunk._security_policy
private

Definition at line 363 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.MessageChunk.Body

Definition at line 362 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.MessageChunk.MessageHeader

Definition at line 354 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.MessageChunk.SecurityHeader

Definition at line 356 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.MessageChunk.SequenceHeader

Definition at line 361 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 Tue Jan 19 2021 03:12:45