Discover Packages
gitea.arsenm.dev/Arsen6331/go-tuntox
package
module
Version:
v0.0.0-...-ec44b74
Opens a new window with list of versions in this module.
Published: Jan 23, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Go-Tuntox
go-tuntox is a simple wrapper around tuntox with a go-like interface
Expand ▾
Collapse ▴
Documentation
¶
Type Client stores the running tuntox command created by Dial,
the remote port being tunneled, the remote IP address being tunneled,
the Tox ID of the server, and a Reader and Writer to provide input
and output to the command, and therefore the connection
Dial runs a command to connect to a tuntox server, returning a
Client
Close closes the readers and writers of the running process
created by Dial and then kills the process
Type Server stores the running tuntox command started by Listen,
its Tox ID, and an errgroup in case there is a need to wait for
the server
Listen creates a new Server and runs the tuntox command,
retrieving the Tox ID.
Close stops the tuntox server by killing the previously started process
Source Files
¶
Click to show internal directories.
Click to hide internal directories.