5. cc_proxy
5.1. Proxy Channel
- module:
cc_proxy
- synopsis:
CChannel implementation for multi-auxiliary usage.
CCProxy channel was created, in order to enable the connection of multiple auxiliaries on one and only one CChannel. This CChannel has to be used with a so called proxy auxiliary.
- class pykiso.lib.connectors.cc_proxy.CCProxy(**kwargs)[source]
Proxy CChannel to bind multiple auxiliaries to a single ‘physical’ CChannel.
Initialize attributes.
- _bind_channel_info(proxy_aux)[source]
Bind a
ProxyAuxiliaryinstance that is instantiated in order to handle the connection of multiple auxiliaries to a single communication channel.This allows to access the real communication channel’s attributes and hides the underlying proxy setup.
- Parameters:
proxy_aux (
ProxyAuxiliary) – the proxy auxiliary instance that is holding the real communication channel.
- _cc_receive(timeout=0.1)[source]
Depopulate the queue out of the proxy connector.
- Parameters:
timeout (
float) – not used- Return type:
Union[Dict[str,Union[bytes,int]],Dict[str,Optional[bytes]],Dict[str,Optional[Message]],Dict[str,None]]- Returns:
bytes and source when it exist. if queue timeout is reached return None
- _cc_send(*args, **kwargs)[source]
Call the attached ProxyAuxiliary’s transmission callback with the provided arguments.
- Parameters:
args (
Any) – positionnal arguments to pass to the callbackkwargs (
Any) – named arguments to pass to the callback
- Return type:
None