Skip to content

dmsghttp

Moses Narrow edited this page Jul 9, 2023 · 2 revisions

Dmsghttp utilities

The dmsg network allows for direct p2p connections between dmsg clients by public key.

HTTP Fileserver over dmsg has been implemented via the dmsghttp application binary provided by dmsg.

image

dmsghttp --help

	┌┬┐┌┬┐┌─┐┌─┐┬ ┬┌┬┐┌┬┐┌─┐
	 │││││└─┐│ ┬├─┤ │  │ ├─┘
	─┴┘┴ ┴└─┘└─┘┴ ┴ ┴  ┴ ┴

Usage:
  dmsghttp 

Flags:
  -d, --dir string         local dir to serve via dmsghttp (default ".")
  -D, --dmsg-disc string   dmsg discovery url default:
                           http://dmsgd.skywire.skycoin.com
  -p, --port uint          dmsg port to serve from (default 80)
  -s, --sk string          secret key to use default:
                           0000000000000000000000000000000000000000000000000000000000000000
  -v, --version            version for dmsghttp


This is demonstrated in conjunction with dmsgget

image

dmsgget --help

	┌┬┐┌┬┐┌─┐┌─┐┌─┐┌─┐┌┬┐
	 │││││└─┐│ ┬│ ┬├┤  │
	─┴┘┴ ┴└─┘└─┘└─┘└─┘ ┴

Usage:
  dmsgget 

Flags:
  -a, --agent AGENT        identify as AGENT (default "dmsgget/unknown")
  -d, --dmsg-disc string   dmsg discovery url default:
                           http://dmsgd.skywire.skycoin.com
  -l, --loglvl string      [ debug | warn | error | fatal | panic | trace | info ]
  -o, --out string         output filepath (default ".")
  -e, --sess int           number of dmsg servers to connect to (default 1)
  -s, --sk cipher.SecKey   a random key is generated if unspecified
 (default 0000000000000000000000000000000000000000000000000000000000000000)
  -n, --stdout             output to STDOUT
  -t, --try int            download attempts (0 unlimits) (default 1)
  -v, --version            version for dmsgget
  -w, --wait int           time to wait between fetches

A file is created and served via dmsghttp

image

The file is fetched, using dmsgget

image

Integration

Clone this wiki locally