Visual Basic (Declaration) | |
---|---|
Public Overloads Overrides Sub Connect( _ ByVal hostNameOrAddress As String _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Rsh Dim hostNameOrAddress As String instance.Connect(hostNameOrAddress) |
C# | |
---|---|
public override void Connect( string hostNameOrAddress ) |
Managed Extensions for C++ | |
---|---|
public: void Connect( string* hostNameOrAddress ) override |
C++/CLI | |
---|---|
public: void Connect( String^ hostNameOrAddress ) override |
Parameters
- hostNameOrAddress
- The remote host name or address to connect to.
This method attempts to connect to the remote host at the default port of 514.
Since the rlogin and rsh protocols require a local port between 512 and 1023 (inclusively), this library attempts to bind to an open local port within this range. This feature allows you to use this protocol hundreds of times without running out of local ports.
Set ServerPort to connect to a port other than 514.
Target Platforms: Microsoft .NET Framework 2.0