func CheckSocketAvailable(path string, timeout time.Duration) (bool, bool) {
	if !checkSocketExists(path) {
		return false, false
	}

	conn, err := winio.DialPipe(path, &timeout)
	if err != nil {
		return true, false
	}

	if conn != nil {
		conn.Close()
	}

	return true, true
}
// CheckSocketAvailable returns named pipe availability
// as on Windows, sockets do not exist
CheckSocketAvailable returns named pipe availability
as on Windows, sockets do not exist
// CheckSocketAvailable returns named pipe availability // as on Windows sockets do not exist
func CheckSocketAvailable(path string, timeout time.Duration) (bool, bool) {
	if !checkSocketExists(path) {
		return false, false
	}
	conn, err := winio.DialPipe(path, &timeout)
	if err != nil {
		return true, false
	}
	if conn != nil {
		conn.Close()
	}
	return true, true
}
func CheckSocketAvailable ( path string , timeout time . Duration ) ( bool , bool ) { if ! checkSocketExists ( path ) { return false , false } conn , err := winio . DialPipe ( path , & timeout ) if err != nil { return true , false } if conn != nil { conn . Close ( ) } return true , true }
CheckSocketAvailable returns named pipe availability
as on Windows, sockets do not exist
CheckSocketAvailable returns named pipe availability as on Windows sockets do not exist