Using nssocket for sending logs

I switched to nssocket to crypt the logs when sent to the server