示例#1
0
def t_connection(host, port, d):
    start = time.time()
    make_connection(host, port, d)
    print d, 'took', time.time() - start
示例#2
0
def t_connection(host, port, d):
    print 'sending', d
    print make_connection(host, port, d)
def t_connection(host, port, d):
    print('sending', d)
    print(make_connection(host, port, d.encode()))