13. cc_udp
13.1. Communication Channel Via Udp
- module
cc_udp
- synopsis
Udp communication channel
- class pykiso.lib.connectors.cc_udp.CCUdp(dest_ip, dest_port, **kwargs)[source]
UDP implementation of the coordination channel.
Initialize attributes.
- Parameters
dest_ip (
str
) – destination ip addressdest_port (
int
) – destination port
- _cc_receive(timeout=1e-07, raw=False)[source]
Read message from socket.
- 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
,None
]]- Returns
Message or raw bytes if successful, otherwise None