CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
test_keepalive Namespace Reference

Classes

class  KaUdp
class  KaTcp
class  KeepAlive
class  _EchoUdp
class  LiveKeepAlive

Functions

 is_packed (b)
 answer (data, version="2.3.2-test", features="keepalive,packed")
 wait (cond, timeout=5.0)

Variables

 LIVE = os.environ.get("PSYCLONE_LIVE", "")

Detailed Description

2.3.1-parity tests for the Python client: keepalive, PackedMode.AUTO, dead-link detection, stats, jitter.

Local servers stand in for a service: KaUdp / KaTcp answer keepalives like a Psyclone 2.3.2 service
(same form, PsyPacked=1, PsyVersion, PsyFeatures) and echo everything else as a Pong; ``mute`` makes
them stop answering anything (a dead path, a half-open socket). With PSYCLONE_LIVE=<host> the Live class
checks the same against a real Psyclone running CMSDK/tools/client-test.xml.

Function Documentation

◆ answer()

test_keepalive.answer ( data,
version = "2.3.2-test",
features = "keepalive,packed" )
What a 2.3.2 service sends back for ``data``: a keepalive reply, or the message as a Pong.

Definition at line 26 of file test_keepalive.py.

References is_packed().

Referenced by test_keepalive.KaUdp.run(), and test_keepalive.KaTcp.serve().

◆ is_packed()

test_keepalive.is_packed ( b)

◆ wait()

Variable Documentation

◆ LIVE

test_keepalive.LIVE = os.environ.get("PSYCLONE_LIVE", "")

Definition at line 19 of file test_keepalive.py.