socket to communicate