What Does It Mean?

shanghai
At an inn near the harbor, the first mate of a merchant ship and his cohorts spend a night filling up the tankards of the inn's guests with ale. Later, they shanghai some sailors. Where do the sailors find themselves in the morning?