Skip to main content

SIMPLE TCP TESTING TOOL

Simple tools to manually test socket programming project. Requires python3.

Features:

  • Arguments can be inputted via command line arguments vs via interactive console
  • Verbose mode vs silent mode
  • SSL/TLS wrapped socket (optional)
  • Does not require additional python module (only using socket, argparse, ssl, and sys)

Common Usage:

  • python3 simple_tcp.py -s -p 3000: start server socket on port 3000 and accept connection from all interface
  • python3 simple_tcp.py -c -h 192.168.1.20 -p 3000: connect to 192.168.1.20:3000
  • python3 simple_tcp.py -i: interactive mode, the script will ask for host, port and mode interactively (easier for noobs)

Arguments:

  • "-h"/"--help": display all command line arguments
  • "-a"/"--host": (optional) set target host, ex: -a 192.168.137.20, will default to localhost if not set
  • "-p"/"--port": (optional) set target port, ex: -p 8888, will default to 80 if not set
  • "-b"/"--buffer": (optional) set buffer size, ex: -b 1024, will default to 4092 if not set
  • flag mode: "-s"/"--server" or "-c"/"--client", can only choose one, will default to client mode if not set
  • flag interactive: "-i"/"--interactive", ask for host, port, buffer, and mode interactively (automatically assumed if no arguments provided)
  • flag verbose: "--verbose", display verbose output (useful for debugging)

SSL Arguments:

  • flag ssl: "--ssl": add this flag to use ssl mode
  • "--ssl_server_certificate": set path to ssl server certificate (for ssl server mode only)
  • "--ssl_server_privatekey": set path to ssl server private key (for ssl server mode only)
  • "--ssl_client_ca": set path to certificate authority (CA)'s certificate (for ssl client mode only)

Release files for simple-tcp 0.6

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

Built distribution (wheel)

Table of built distributions (wheels) for simple-tcp 0.6
File Interpreter ABI Platform
simple_tcp-0.6-py3-none-any.whl Python 3 none any Details

Release files / simple_tcp-0.6-py3-none-any.whl

Download URL simple_tcp-0.6-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fa895f670d5d254ad2d832fd138cd27f3e516df390756a3cfefbdb14ee4788e
BLAKE2b-256 checksum
How to use checksums
f038af76a2c79634d9ade2675bc57a0c341836bbf2e45744cdbde61a8e89e0a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.6 This release

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

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