Begin tcp communication functionality