Updated Manage Multiple Users (markdown)

clowwindy 2015-08-06 19:46:25 +08:00
parent 83e3c0fd1c
commit 9864adf490

@ -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