Skip to main content

File-based socket server

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

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

Source Distribution

dsock-0.5.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dsock-0.5-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file dsock-0.5.tar.gz.

File metadata

  • Download URL: dsock-0.5.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for dsock-0.5.tar.gz
Algorithm Hash digest
SHA256 430c8171688797bdc4b655b59a0dda58bddca67ff88c7066393569aab64d17af
MD5 bfbfb49fbd6b11b36ad33c140191351d
BLAKE2b-256 62dbc460ae3d92dae1039ca27346a9c2dd790924963818e7e490ab97fa341b18

See more details on using hashes here.

File details

Details for the file dsock-0.5-py3-none-any.whl.

File metadata

  • Download URL: dsock-0.5-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for dsock-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 610d44bbc86f545cd002b395c3050351190af5be140403dd867967c3851cbaf5
MD5 22d99c15700baa426a385919ac8cad44
BLAKE2b-256 24466c3cccb77728565072aedfeea4f2dce10985524c33428ba556393cea9532

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page