Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 291 Bytes
package main
import (
"io"
"net"
"log"
)
func main() {
server, err := net.Listen("tcp", ":6543")
if err != nil {
log.Fatal(err)
}
log.Println("Now listening on port 6543...")
for {
conn, err := server.Accept()
if err != nil {
log.Fatal(err)
}
io.Copy(conn, conn)
}
}
Something went wrong with that request. Please try again.