Send stream to socket