7. cc_raw_loopback
7.1. Loopback CChannel
- module
cc_raw_loopback
- synopsis
Loopback CChannel for testing purposes.
- class pykiso.lib.connectors.cc_raw_loopback.CCLoopback(**kwargs)[source]
Loopback CChannel for testing purposes.
Whatever gets sent via cc_send will land in a FIFO and can be received via cc_receive.
Constructor.
- Parameters
processing – if multiprocessing object is used.
- _cc_receive(timeout, raw=True)[source]
Read message by simply removing an element from the left side of deque.
- Parameters
timeout (
float
) – timeout applied on receive eventraw (
bool
) – if raw is True return raw bytes, otherwise Message type like
- Return type
Dict
[str
,Union
[Message
,bytes
,str
]]- Returns
Message or raw bytes if successful, otherwise None