Write responses to socket on linux.