Socket stream implemented