Singleton

The Singleton class implements the Singleton pattern, ensuring that there is only one instance of the class. It manages TCP and UDP sockets as well as a server address.