Those ways are:Unprotected vaginal and anal sex;Sharing contaminated injecting equipment such as needles and syringes;In some cases from HIV positive mother to her unborn or nursing infant.You were not at risk for HIV transmission from this sexual encounter.