Creating TCP/UDP servers and clients and making them talk