Basic client-server using TCP socket