Skip to content

dzrw/go-proxymate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages