from tcp import TcpConnection t = TcpConnection(src_ip='192.168.1.88', src_port=43702, dst_ip='192.168.1.123', dst_port=8888) t.connect() t.send('test') t.disconnect()
from tcp import TcpConnection t = TcpConnection(src_ip='0.0.0.0', src_port=8888) t.listen()