Your dentist may try to drain the pus, and (s)he may insert a wick that'll stay in for a few days to help the abscess drain.
I guess that your dentist will get a history of the problem, will examine the tooth, may do an X-ray,
You may get an antibiotic, and take it as it's directed, until it's gone.
Maybe you'll get a root canal, maybe the dentist will pull the tooth.
Until you get the appointment, I think that you ought to rinse your mouth regularly (maybe with salt water), to take some Tylenol or Advil (or Aspirin), to limit your intake of spicy or irritating foods, and to ice the area to reduce the inflammation. I'm not a dentist, but I think that these are reasonable steps to take. If you begin to develop a temperature, or if you start to get swelling that spreads to your face, then you might want to consider making an emergency appointment.
Do follow up with the dentist.