Help us shape the future of Go! Take the 2026 Go Developer Survey

commands

package
v1.3.98 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package commands cmd/sub/commands/sub.go c2-net-transport

Standalone (dmsg-only) UDP→dmsg bridge ("sub" — sky UDP bridge). Wraps UDP datagrams in length-prefixed frames, ferries them over a dmsg stream, and replays them as UDP on the peer. Mirrors the smb shape — one binary, no visor dependency, own dmsg.Client.

Two subcommands:

sub client   — local UDP listener → peer-dialed dmsg stream
sub server   — accept dmsg streams → forward as UDP to target

Plan B for UDP-over-skynet (TCP-over-UDP, reliable + in-order). For media-class UDP (RTP, voice, game) use Plan A — the packet-level UDP at the route-group layer (RFC #2607).

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:                   "sub",
	Short:                 "Standalone UDP→dmsg bridge — ferries length-prefixed UDP datagrams over dmsg streams",
	Long:                  calvin.AsciiFont("sub"),
	SilenceErrors:         true,
	SilenceUsage:          true,
	DisableSuggestions:    true,
	DisableFlagsInUseLine: true,
	Version:               buildinfo.Version(),
}

RootCmd is the cobra entry for the standalone UDP→dmsg bridge. Used both as the top-level binary (cmd/sub) and the integrated subcommand `skywire dmsg sub`.

Functions

func Execute

func Execute()

Execute is invoked from the package-main entrypoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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