Your comments

The option of specifying a password at login is also integral if you are connecting to a server that requires a changing token authentication system ( e.g. RSASecurID ). The app might also have to be modified to have an option to maintain a single persistent connection to the server; instead of opening & closing connections as needed.