PowerTCP Emulation for .NET CF
Connect(String) Method
See Also  Send comments on this topic.
Dart.Emulation Namespace > Rsh Class > Connect Method : Connect(String) Method




hostNameOrAddress
The remote host name or address to connect to.
Connects to an Rsh server.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub Connect( _
   ByVal hostNameOrAddress As String _
) 
Visual Basic (Usage)Copy Code
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.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.