// Listen goroutine function, handling listening for one socket. // Owns its socket. func listen(l *net.TCPListener) { for { c, err := l.AcceptTCP() if err != nil { core.Shutdown() return } go link(c, false) } }
func cmdDie(source interface{}, params [][]byte) { core.Shutdown() }