net.go
func WaitPeerListening(network, address string, timeout time.Duration) bool {
	return WaitFunc(100*time.Millisecond, timeout, func() bool {
		c, err := net.Dial(network, address)
		if err == nil {
			c.Close()
			return true
		}

		return false
	})
}
func WaitPeerListening(network, address string, timeout time.Duration) bool {
	return WaitFunc(100*time.Millisecond, timeout, func() bool {
		c, err := net.Dial(network, address)
		if err == nil {
			c.Close()
			return true
		}

		return false
	})
}
// WaitPeerListening wait for specified peer be ready for new connections.