netmux

command module
v0.0.0-...-3669641 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: MIT Imports: 1 Imported by: 0

README

netmux

Take a TCP or UDP connection and broadcast it to other TCP/UDP listeners, Unix named pipes, and Unix domain sockets.

If a named pipe in the config does not exist, netmux will try to create it, but it won't overwrite existing named pipes.

Usage

go install github.com/graysonchao/netmux
netmux --config <config.json>

An example configuration is provided. It includes one of each type of output:

  • "fifo" is a named pipe at /usr/local/var/netmux.1
  • "udp0" sends output over UDP to 127.0.0.1:8889.
  • "tcp0" sends output over TCP to 127.0.0.1:8890
  • "my_unix" sends output to a Unix domain socket at /usr/local/var/netmux.sock.

If you try to use the example config, you should create the Unix domain socket first:

nc -U -l /usr/local/var/netmux.sock

Notes

netmux uses unix.mkfifo on FreeBSD and Darwin and unix.mknod on Linux.

The Unix domain socket type used is SOCK_STREAM.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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