Debian Codegraph @

/

debian golang-github-hydrogen18-stoppablelistener 0.0~git20161101.827d760-1debian golang-github-hydrogen18-stoppablelistener-dev debiangoinimakefilemarkdownshellyaml 13 files · 49 symbols
View dependency graph

Depends on

README (full)

stoppableListener

An example of a stoppable TCP listener in Go. This library wraps an existing TCP connection object. A goroutine calling Accept() is interrupted with StoppedError whenever the listener is stopped by a call to Stop(). Usage is demonstrated below, and in example/example.go.

	originalListener, err := net.Listen("tcp", ":8080")
	if err != nil {
		panic(err)
	}

	sl, err := stoppableListener.New(originalListener)
	if err != nil {
		panic(err)
	}
dir debian/
dir example/
file LICENSE
file README.md
file listener.go