コード例 #1
0
ファイル: timingclient.py プロジェクト: bizhan/notes
def t_connection(host, port, d):
    start = time.time()
    make_connection(host, port, d)
    print d, 'took', time.time() - start
コード例 #2
0
ファイル: threadedclient.py プロジェクト: bizhan/notes
def t_connection(host, port, d):
    print 'sending', d
    print make_connection(host, port, d)
コード例 #3
0
def t_connection(host, port, d):
    print('sending', d)
    print(make_connection(host, port, d.encode()))