go-proxymate

command module
v0.0.0-...-10db192 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2013 License: GPL-3.0 Imports: 6 Imported by: 0

README

go-proxymate

A simple client/server tool to assist people who need to work on TCP proxies.

What is this thing?

Ostensibly, it's a client/server two-in-one for proxy developers, but it's mostly an excuse to write some Go.

Is it any good?

Yes

Installation

go get github.com/politician/go-proxymate

Usage

$ go build
$ ./go-proxymate --help

Example Output

$ ./go-proxymate -s ":8081"
2013/08/21 02:24:53 Listening on :8081
2013/08/21 02:24:53 connection accepted: 127.0.0.1:50438
2013/08/21 02:24:53 CTRL-C to exit...
([]uint8) {
 00000000  70 69 6e 67 00 00 00 00  00 00 00 00 00 00 00 00  |ping............|
}
([]uint8) {
 00000000  70 6f 6e 67 00 00 00 00  00 00 00 00 00 00 00 00  |pong............|
 00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
}
([]uint8) {
 00000000  70 69 6e 67 00 00 00 00  00 00 00 00 00 00 00 00  |ping............|
}
([]uint8) {
 00000000  70 6f 6e 67 00 00 00 00  00 00 00 00 00 00 00 00  |pong............|
 00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
}
([]uint8) {
 00000000  70 69 6e 67 00 00 00 00  00 00 00 00 00 00 00 00  |ping............|
}
([]uint8) {
 00000000  70 6f 6e 67 00 00 00 00  00 00 00 00 00 00 00 00  |pong............|
 00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
}
^C2013/08/21 02:25:00 Got:  interrupt
2013/08/21 02:25:00 stopping client
2013/08/21 02:25:00 stopping server
2013/08/21 02:25:00 refusing new connections to :8081
2013/08/21 02:25:00 waiting for existing requests to drain...
2013/08/21 02:25:00 connection closed: 127.0.0.1:50438
2013/08/21 02:25:00 remaining connections have drained
2013/08/21 02:25:00 goodbye

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Experimental netcraft
Experimental netcraft

Jump to

Keyboard shortcuts

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