Skip to main content

NetSplit

Project description

NetSplit

Build Tests Coverage

PyPI Package

Split a single tcp/ip connection between multiple servers.

Wait isn't this just NAT....

Usage

py netsplit.py config.json

Config

{
    "http": { // Special route that forwards web browsers
        "host": "127.0.0.1",
        "port": 8000
    },
    "0": {    // Server ID (SID), this is what you will put in s.connect(<addr>, <sid>)
        "host": "127.0.0.1",
        "port": 5000
    }
    ... // You can have as many as you want
}

Client usage

import netSplit

s = netSplit.socket()              # Create socket
s.connect(('127.0.0.1', 8080), 0)  # Connect to the proxy, and ask it to forward us to server 0

# Simple echo client
while True:
    s.send(input('> ').encode())
    print(s.recv(2048).decode())

Server usage

The server does not have to be built with netSplit.

Project details


Download files

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

Source Distribution

pynetsplit-3.10.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

pynetsplit-3.10.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pynetsplit-3.10.0.tar.gz.

File metadata

  • Download URL: pynetsplit-3.10.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pynetsplit-3.10.0.tar.gz
Algorithm Hash digest
SHA256 29e805ecccdebcee672d8b47a2632d0bdf8426d079b52f668121529870db2807
MD5 b46d482543826ec79d6a64431276dbdf
BLAKE2b-256 99f35f0ac561b505f5c113cf09b5ab1d5bb4b9869b8ae0a6170136bd4102c523

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynetsplit-3.10.0.tar.gz:

Publisher: publish.yml on Omena0/NetSplit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pynetsplit-3.10.0-py3-none-any.whl.

File metadata

  • Download URL: pynetsplit-3.10.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pynetsplit-3.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c89db142a0c28e17cf2eb4ba7b00ddbac4b29f33765073a99df50fa9d2a0b79
MD5 652466832c5f208cf0735ab327097aa5
BLAKE2b-256 67d4fb66030b626f6fbca22b332e483ae7708cbdb007c968f20fdb21c43fd169

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynetsplit-3.10.0-py3-none-any.whl:

Publisher: publish.yml on Omena0/NetSplit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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