Can someone help me on this one?

Given two compact Hausdorff Space and a continuous function which conditions are necessary and sufficient to garantuee the existence of a continuous function such that ( restricted to ) where are the one-point compactifications?