This method uses host equivalence, where the client is
permitted to login without requiring a password. Host equivalence
must be configured by the server administrator and it is typically
restricted to specific users. Note that if configured improperly,
host equivalence can introduce a significant security loophole. Refer
to your UNIX system documentation for more information about host
equivalence and the various remote command services.
On UNIX based systems, the terminal name specified by the
lpszTerminal parameter corresponds to a termcap or terminfo
entry as set in the TERM environment variable. On Windows based
systems which implement the rlogin service, this parameter may be
ignored and the server will assume that the client is capable of
displaying ANSI escape sequences. On VMS systems, the terminal name
should correspond to the terminal type used with the SET
TERMINAL/DEVICE command.
If this parameter is passed as NULL pointer or an empty string, a
default terminal type named "unknown" will be used. On most
UNIX and VMS systems this defines a terminal which is not capable of
cursor positioning using control or escape sequences. This terminal
type may not be recognized and an error may be displayed when the
user logs in indicating that the terminal type is invalid.
Refer to the documentation for the server system to determine what
terminal type names are available to you. Remember that on UNIX
systems, the terminal type is case-sensitive. Some of the more common
terminal types are:
This method will block the current thread until a connection has
been established or the timeout period has elapsed. To prevent it from
blocking the main user interface thread, the application should create
a background worker thread and establish a connection by calling the
Connect method in that thread. If the application
requires multiple simultaneous connections, it is recommended you
create a worker thread for each connection.