Two-carbon nitrogen ring bases (adenine and guanine) covalently linked to a sugar (ribose or deoxyribose) and one to three phosphate groups; can function as extracellular messengers, antimetabolites, and chain terminators that inhibit viral DNA polymerase.