From 528b702a88a8334b124bd68dcc982cca12e90167 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Mon, 4 Dec 2023 22:43:37 +0100 Subject: [PATCH] README : sous-section d'installation pour first-free-port --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 645dadb..64c118f 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,15 @@ Use your preferred way to add the `qemush` script to a folder of `PATH`. Recommended : copy the script in `/usr/local/bin` to make it effortlessly system wide. +### Extra: add `first-free-port` in `PATH` + +`first-free-port` is a small C program designed accordingly to the Unix +philosophy to show in `stdout` the first free (not listening) TCP port +after `argv[1]`, or `argv[1]` if it is free. You can compile it and add +it to your `PATH` if you need to allocate ports to protocols like SPICE in +your launching scripts (example in `qemu/bin/*-spice`). Its source is in +`src` folder of this repository. + ## Usage ### Writing a launching script