Esempio n. 1
0
def t_connection(host, port, d):
    start = time.time()
    make_connection(host, port, d)
    print d, 'took', time.time() - start
Esempio n. 2
0
def t_connection(host, port, d):
    print 'sending', d
    print make_connection(host, port, d)
Esempio n. 3
0
def t_connection(host, port, d):
    print('sending', d)
    print(make_connection(host, port, d.encode()))