dcping

command
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

README

DCPing

A command line DC pinger.

Build

On Linux:

go build ./cmd/dcping

On Windows:

go build .\cmd\dcping

Commands

Protocol probe

This command detects the protocol of a DC hub and prints a canonical address.

$ dcping probe example.org
dchub://example.org:411

$ dcping probe example2.org:8000
adcs://example2.org:8000
Ping the hub

This command "pings" the hub and returns its information.

$ dcping ping example.org
{"name":"Example Hub","desc":"Hub description","addr":["adcs://example.org:411"],"encoding":"utf-8","soft":{"name":"test-hub","vers":"1.0","ext":["BASE","TIGR","PING"]},"users":123,"files":2356,"share":115350897664}

It also supports XML output:

$ dcping ping --out=xml example.org
<Hub Name="Example Hub" Description="Hub description" Address="adcs://example.org:411" Encoding="UTF-8" Users="123" Shared="115350897664" Software="test-hub" Status="Online"></Hub>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL