|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
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", "") | |
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.
| 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().
| test_keepalive.is_packed | ( | b | ) |
Definition at line 22 of file test_keepalive.py.
Referenced by answer(), test_keepalive._EchoUdp.run(), test_keepalive.KaUdp.run(), and test_keepalive.KaTcp.serve().
| test_keepalive.wait | ( | cond, | |
| timeout = 5.0 ) |
Definition at line 123 of file test_keepalive.py.
Referenced by test_keepalive.LiveKeepAlive.check(), test_keepalive.KeepAlive.test_auto_negotiates_packed_and_measures_rtt(), test_keepalive.KeepAlive.test_auto_stays_full_against_an_older_server(), test_keepalive.KeepAlive.test_auto_switches_when_the_server_sends_packed(), test_keepalive.KeepAlive.test_forced_modes_ignore_negotiation(), test_keepalive.KeepAlive.test_request_counters(), and test_keepalive.KeepAlive.test_tcp_dead_link_reconnects().
| test_keepalive.LIVE = os.environ.get("PSYCLONE_LIVE", "") |
Definition at line 19 of file test_keepalive.py.