Enable a socket connection to send messages as XML or JSON
The parameters are the following:
- Host: The IP to which the system will send the message.
- Port: The port to which the system will the message.
- Format: The message type (XML/JSON) and if the image should be included.