go-tcplisten

command module
v0.0.0-...-561e216 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README

go-tcplisten: A simple TCP Listener written in go

This simple program was created to be used as a system service. The service starts and listens on a specified TCP port number, and echos back any raw data sent.

Designed as a tiny executable to be used as a service monitor with VMware NSX Load Balancers

Configuration

No configuration required. Build to be executed from either command line or crontab (or Services for Windows).

> ./go-tcplisten 1234
> .\go-tcplisten 1234

Where 1234 is the TCP Port number you want the service to listen to.

Windows Service

Add to Services using the following...

sc create "GoLang TCP Listener" binpath="c:\go-tcplisten\go-tcplisten.exe 1234" type=own start=auto

Testing

To test the application, run the following

go run *.go

Building

When ready to compile, run the following

go build

The resulting executable & config.yml file can be placed in your system or user path.

References

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