blob: 298e5c7759823626ceff7f1badfd56a41121dfc6 [file] [log] [blame]
// +build ignore,OMIT
package main
import (
"fmt"
"log"
"net"
)
const listenAddr = "localhost:4000"
func main() {
l, err := net.Listen("tcp", listenAddr)
if err != nil {
log.Fatal(err)
}
for {
c, err := l.Accept()
if err != nil {
log.Fatal(err)
}
fmt.Fprintln(c, "Hello!")
c.Close()
}
}