mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-10 10:03:42 +08:00
4d7a40310f
version: dragonpilot v0.8.16 beta for EON/C2 date: 2022-08-11T09:38:43 dp-dev(priv2) master commit: c6cd233f23f60e7a6055d42850bc593c0e69082e
15 lines
381 B
Python
15 lines
381 B
Python
from messaging_pyx import Context, SubSocket, PubSocket # pylint: disable=no-name-in-module, import-error
|
|
|
|
if __name__ == "__main__":
|
|
c = Context()
|
|
pub_sock = PubSocket()
|
|
pub_sock.connect(c, "controlsState")
|
|
|
|
for i in range(int(1e10)):
|
|
print(i)
|
|
sub_sock = SubSocket()
|
|
sub_sock.connect(c, "controlsState")
|
|
|
|
pub_sock.send(b'a')
|
|
print(sub_sock.receive())
|