Refined client classes. Basic functionality for TCP and UDP clients