Skip to main content

No project description provided

Project description

TCP bridge for data transfer


Only for tests
  • pytest
  • pytest-cov


make install
make uninstall


import socket
from tcpbridge import SocketSink, TCPBridge

svr_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
svr_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
svr_sock.bind(('localhost', 9002))

cli_sock, _ = svr_sock.accept()
socket_sink = SocketSink(sock=cli_sock)

Single endpoint TCP Bridge

In background
bridge = TCPBridge(sink=socket_sink, port_in=9000)

Dual endpoint TCP Bridge

In foreground
bridge = TCPBridge(sink=socket_sink, port_in=9000, port_out=9001)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tcpbridge, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size tcpbridge-1.1.1-py2-none-any.whl (5.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size tcpbridge-1.1.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page