feat(rcf): apprend basic multithreaded client api

This commit is contained in:
Swann
2019-04-08 15:54:21 +02:00
parent fecc429ef1
commit c137971606
6 changed files with 163 additions and 221 deletions

14
test_client.py Normal file
View File

@ -0,0 +1,14 @@
from net_components import RCFClient
import time
client = RCFClient()
client.connect("127.0.0.1",5555)
try:
while True:
client.set('key', 1)
# Distribute as key-value message
time.sleep(1)
except KeyboardInterrupt:
pass