Skip to main content

dsock

dsock is a bi-directional, multiplexing socket server that acts as a proxy between two machines sharing a common file system. This is useful in situations where there is no direct network connectivity. For example, dsock would enable connectivity to a service over a Windows remote desktop session.

Quick Start

There are no dependencies other than Python 3.12. Clone the repository and update the configuration dictionary in server.py. The library package can be installed in site-packages although it isn't necessary for running the server.

As an example scenario, connecting to machine A's port 8080 will reach machine B's port 80:

config = {
    'a': {'pipes': [], 'tcp-sockets': [('127.0.0.1', 8080, '127.0.0.1', 80, '/mnt/share/web.sock')]},
    'b': {'pipes': ['/mnt/share/web.sock'], 'tcp-sockets': []}}

Then start the server on A:

$ python server.py a

And also on B:

$ python server.py b

Release files for dsock 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsock 0.5
File Size Uploaded
dsock-0.5.tar.gz 18.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dsock 0.5
File Interpreter ABI Platform
dsock-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / dsock-0.5.tar.gz

Download URL dsock-0.5.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
430c8171688797bdc4b655b59a0dda58bddca67ff88c7066393569aab64d17af
BLAKE2b-256 checksum
How to use checksums
62dbc460ae3d92dae1039ca27346a9c2dd790924963818e7e490ab97fa341b18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / dsock-0.5-py3-none-any.whl

Download URL dsock-0.5-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
610d44bbc86f545cd002b395c3050351190af5be140403dd867967c3851cbaf5
BLAKE2b-256 checksum
How to use checksums
24466c3cccb77728565072aedfeea4f2dce10985524c33428ba556393cea9532
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page