示例#1
0
#my libs
import info
import updateDDNS
import checkNet
from TS_handler import TS
import TS_handler

lb = socket.gethostname()

try:
    ts = TS()
    ts._listener = TS_handler.Listener()
#    ts.externalIp = 6970
#    ts._status = TS_handler.ONLINE
    ts.go()
    
except KeyboardInterrupt as e:
    print()
    try:
        ts.terminate()
        print("Terminated")
    except Exception as e:
        print(str(e.with_traceback(None).args))
        





示例#2
0
import time
import socket
import array

#my libs
import info
import updateDDNS
import checkNet
from TS_handler import TS
import TS_handler


lb = socket.gethostname()
try:
    ts = TS()
    ts._listener = TS_handler.Listener(6972)
    ts.externalIp = 6972
    #ts._status = TS_handler.ONLINE
    ts.go(lb, 6970)    

except KeyboardInterrupt as e:
    print()
    try:
        ts.terminate()
        print("Terminated")
    except Exception as e:
        print(str(e.with_traceback(None).args))