When closed,
If no messaged were received => NoMessage error is set to future
Else if an error was detected => Set the future to error (with or without exception)
Else if no error occurs => Set success to the future
Takes 3 to 6 arguments (last 3 are optional arguments):
- mandatory arguments: filename keystorepaswwd keypassword
- if no more arguments are provided, it implies 127.0.0.1 + 9999 port and no certificates
- optional arguments:
"trustfilename" "trustpassword"
"trustfilename" "trustpassword" "addresse" "port"
"trustfilename" "trustpassword" "addresse" "port" "default delay"