Thanks for posting your query.
You have had a urinary tract infection
secondary to STD
from the sexual act.
You have severe urinary tract infection that is involving the urinary bladder
mainly(suggested by pus discharge at the end of urination.). If your partner is little known to you then you should get tested for other STDs.
You should get a microscopic examination and culture/sensitivity of the discharge and urine.
You need to consult a physician of your locality and get antibiotics prescribed urgently.
I hope this answers your query.
In case you have any follow up queries or doubts, you can forward them for me, and I shall be glad to help you.
Please accept my answer in case you do not have further queries.
Wishing you good health.