Send stdout to socket