// ServeTCP runs on the TCPListener. ServeTCP blocks, serving the listener
// until the server is stop. The caller typically invokes ServeTCP in a go
// statement.
ServeTCP runs on the TCPListener. ServeTCP blocks, serving the listener
until the server is stop. The caller typically invokes ServeTCP in a go
statement.
// ServeTCP runs on the TCPListener . ServeTCP blocks serving the listener // until the server is stop . The caller typically invokes ServeTCP in a go // statement .
func (service *TCPService) ServeTCP(listener *net.TCPListener) {
	var tempDelay time.Duration 
	for {
		conn, err := listener.AcceptTCP()
		if err != nil {
			tempDelay = nextTempDelay(err, service.Event, tempDelay)
			if tempDelay > 0 {
				continue
			}
			return
		}
		tempDelay = 0
		go service.ServeTCPConn(conn)
	}
}
func ( service * TCPService ) ServeTCP ( listener * net . TCPListener ) { var tempDelay time . Duration for { conn , err := listener . AcceptTCP ( ) if err != nil { tempDelay = nextTempDelay ( err , service . Event , tempDelay ) if tempDelay > 0 { continue } return } tempDelay = 0 go service . ServeTCPConn ( conn ) } }
ServeTCP runs on the TCPListener.
ServeTCP runs on the TCPListener .
// how long to sleep on accept failure