write Content To
Method to write an encrypted content message to send with the socket request
Parameters
target Socket
: target socket to use to send the content message
content
: content message to send
Throws
when some errors have been occurred