TCP IP ASCII integrations

Hi

What is the best way to send and receive ASCII over TCP IP? I’ve been doing a lot of reading on this and it seems there have been several ways as HA developed. I need to send messages in the format @SS01:A04:F2 ideally I need to listen to the port as well to keep track of the scene levels. This is for a lighting system so there are many areas (AAxx) and many scenes (SSxx) in the areas. Are there any guides for setting this sort of thing up?

Thanks for any advise.