コード例 #1
0
def killall():
    global proxies

    for p in proxies:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()

    proxies = []
コード例 #2
0
def killall():
    global proxies

    for p in proxies:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()

    proxies = []
コード例 #3
0
def kill(id_):
    p = proxy_by_id(id_)
    if p:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()
        proxies.remove(p)

        return ''

    return 'error'
コード例 #4
0
def kill(id_):
    p = proxy_by_id(id_)
    if p:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()
        proxies.remove(p)

        return ''

    return 'error'