This is number 7 in the Lord Ramage series of nautical novels by Dudley Pope, considered by many (including me) to be a suitable replacement to C. S. Forester. This is also another nautical series I am trying to read in order, somewhat unsuccessfully, I might add.
Ramage is now a post captain. He has been awarded the Juno, a ship whose previous captain had left in disgrace. Ramage must whip the crew into shape (which he does) and then take the ship to the Caribbean and the West Indies to blockade the French at Fort Royal on the island of Martinique. (Apparently, the actions of Ramage are based on the real-life exploits of Commodore Samuel Hood.) After cutting out two small French frigates from the port, Ramage, hearing that a large French naval convoy is soon due, decides to fortify a huge rock that commands the sea lane to the French island. Some of the most interesting detail concerns exactly how the huge guns from the Juno were taken off the ship and hauled up to the top of this rock, substantially higher than the masts of the ship. Much too heavy to be placed on the ship's small boats, the guns were hung in the water on poles between two of the boats to reduce their weight and then towed in this way closer to shore where they could be lofted by a complicated system of blocks and tackles.
The English had advance information of the French convoy of merchant ships and the approximate date when they were to arrive, but not how many escort vessels would accompany the convoy, so they were at considerable risk. Ramage/Hood was very short of men, but he stationed the Juno in such a way that it could not be seen by the approaching enemy, and then he used one of the little French ships he had captured previously to masquerade as a French schooner. At the right moment, with the assistance of a favorable breeze -- and the ineptitude of the French commodore -- he managed to separate the merchant ships from the escort. That two of the escorts ran into each other helped him immeasurably. These actions, coupled with the plunging fire from the batteries he had placed on Diamond Rock, decimated the escorts, which had vastly outnumbered him in men almost five to one.
Pope was apparently "anointed" by C.S. Forester as his successor, and his books do have the flavor of the Hornblower series. Of the many people writing excellent nautical historical fiction, Pope has recreated the atmosphere and style of Forester most similarly. Other wonderful authors are Dewey Lambdin, Patrick O’Brian, Richard Woodman, and recently James Nelson, who approaches the war from the American point of view.