feat(rcf): apprend basic multithreaded client api
This commit is contained in:
14
test_client.py
Normal file
14
test_client.py
Normal 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
|
Reference in New Issue
Block a user