From 9864adf490d448d9ce4e99a7d92c334bccfe5dbd Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 6 Aug 2015 19:46:25 +0800 Subject: [PATCH] Updated Manage Multiple Users (markdown) --- Manage-Multiple-Users.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Manage-Multiple-Users.md b/Manage-Multiple-Users.md index cd51893..d6200a2 100644 --- a/Manage-Multiple-Users.md +++ b/Manage-Multiple-Users.md @@ -62,10 +62,12 @@ cli.bind('/tmp/client.sock') # address of the client cli.connect('/var/run/shadowsocks-manager.sock') # address of Shadowsocks manager cli.send(b'ping') -print(cli.recv(1506)) # You'll receive a pong +print(cli.recv(1506)) # You'll receive 'pong' cli.send(b'add: {"server_port":8001, "password":"7cd308cc059"}') +print(cli.recv(1506)) # You'll receive 'ok' cli.send(b'remove: {"server_port":8001}') +print(cli.recv(1506)) # You'll receive 'ok' while True: print(cli.recv(1506)) # when data is transferred on Shadowsocks, you'll receive stat info every 10 seconds