tcp_socket/_examples_/tcp_socket__stp_client.py

17 lines
312 B
Python

import sys
sys.path.append('../..')
import report
import tcp_socket
import time
def mirror_callback(data):
return data
report.stdoutLoggingConfigure(log_name_lvl=[('root', 'DEBUG'), ])
c = tcp_socket.tcp_client_stp('127.0.0.1', 17017)
c.send(b'abc')
print('The Client received: %s' % repr(c.receive()))