This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readdir, rmdir, lstat } from "fs/promises"; | |
import { join } from "path"; | |
const emptyDirs = []; | |
/** | |
* | |
* @returns {Promise<string[]>} | |
*/ | |
const iterateDirs = async (startPath = ".") => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TIP_TEXT = `udp_ping_pong.mjs | |
Server: | |
node ./udp_ping_pong.mjs --server --port 8999 | |
Client (assume the target server ip is 1.1.1.1, port 8999): | |
node ./udp_ping_pong.mjs --client 1.1.1.1:8999 --interval 100 --timeout 1000 | |
Ctrl + C to end the ping and see results. | |
Args: |