
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
.. image:: https://semaphoreci.com/api/v1/projects/be1ed091-9d94-49d5-8391-781d1f1d76b8/1282662/shields_badge.svg .. image:: https://img.shields.io/pypi/pyversions/tcpbridge.svg .. image:: https://img.shields.io/pypi/v/tcpbridge.svg
TCP bridge for data transfer
Only for tests
.. code-block:: sh
make install make uninstall
.. code-block:: python
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)) svr_sock.listen(1)
cli_sock, _ = svr_sock.accept() socket_sink = SocketSink(sock=cli_sock)
Single endpoint TCP Bridge
In background
.. code-block:: python
bridge = TCPBridge(sink=socket_sink, port_in=9000)
bridge.start()
...
bridge.stop()
Dual endpoint TCP Bridge
In foreground
.. code-block:: python
bridge = TCPBridge(sink=socket_sink, port_in=9000, port_out=9001) bridge.start(in_background=False) ... bridge.stop()
FAQs
Unknown package
We found that tcpbridge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.