Version: 1.0.6
Add Telnet, rsh, rexec and rlogin connectivity to your Windows or Web application.

Rlogin .NET Component

Looking for an SSH Component?

Use the Rlogin .NET component to easily login to a remote host using rlogin. Features include:

  • Stream interface enables advanced read/write capabilities such as reading to a delimiter.
  • Trace event exposes the TCP communication.
  • Specify the display characters, display pixels, and terminal type speed.
  • Use synchronously or asynchronously.
  • Extensive documentation includes Rlogin quick starts.
  • Installation includes Rlogin sample.
  • Integrates with all versions of Visual Studio and supports C#, VB.NET, ASP.NET, Delphi 8, C# Builder, and other .NET compliant development environments.

Looking for the ActiveX version of this component?

Interface

Public Constructors
Rlogin. Initialize a new instance of the Rlogin class.
Public Properties
AutoReceive Gets or sets a value which determines if data is automatically receved.
Available Gets the amount of data that has been received from the network and is available to be read.
Charset Gets and sets the character set used for string/byte array conversions.
Connected Gets the connected state of the connection.
DisplayCharacters Gets or sets character display information.
DisplayPixels Gets or sets pixel display information.
DoEvents Gets or sets a value that controls the processing of events during blocking method calls.
Editor In Visual Studio.NET, displays an interactive form to use to test real time protocol operations.
KeepAlive Gets or sets the value of the socket's KeepAlive option.
LocalEndPoint Returns the local address the socket is bound to.
NoDelay Gets and sets a value the disables the use of Nagle's algorithm so that data is sent immediately.
OutOfBandInline Gets or sets a value that indicates whether out-of-band (urgent) data is read as normal in-line data.
Proxy Returns the Proxy instance that controls proxy server use.
ReceiveBufferSize Gets and sets the size of the system receive buffer.
ReceiveTimeout Gets and sets the number of milliseconds that a Rlogin.Receive method will block before throwing a SocketException.
RemoteEndPoint Returns the remote address/port the socket is connected to.
ReuseAddress Gets or sets a value that typically allows any local port to be specified, even if it is already in use.
SendBufferSize Gets and sets the size of the system send buffer.
SendTimeout Gets and sets the number of milliseconds that a Rlogin.Send method will block before throwing a SocketException.
Socket Returns a reference to the System.Net.Sockets.Socket instance being used.
Stream Returns a SegmentedStream that can be used for advanced streaming operations on the socket.
Tag Gets or sets an object reference that can be used to associate this instance with any other. Gets or sets an object reference that can be used to associate this instance with any other.
TerminalTypeSpeed Gets or sets terminal type and speed.
Public Methods
BeginLogin Connect to a server asynchronously, specifying the local interface and a range of local ports to use. The Rlogin.EndConnect event is raised when completed.
BeginReceive Receive data into your buffer asynchronously specifying a buffer, offset, size and SocketFlags value. The Rlogin.EndReceive event is raised when completed.
BeginSend Send data from your buffer asynchronously, specifying a buffer, offset, size and SocketFlags value. The Rlogin.EndSend event is raised when completed.
Close Close the connection.
Login Connect to a host, specifying the local interface and a range of local ports to use.
Receive Receive data from the host, specifying a buffer, offset, size and SocketFlags value.
Send Send data to the server, specifying a buffer, offset, size and SocketFlags value.
WaitFor Reads data from the stream until the specified string is found.
Public Events
ConnectedChanged Raised when the value of the Object.Connected property changes.
EndLogin Raised when the Rlogin.BeginLogin request completes.
EndReceive Raised when the Rlogin.BeginReceive request completes.
EndSend Raised when the Rlogin.BeginSend request completes.
RawTrace Raised when data has been sent/received.
Trace Raised when data has been sent/received.

Code Example

How easy is the Rlogin component to use? Check out the following example below which demonstrates Rlogin functionality.

' Login
Rlogin1.Login("myserver", "myname")


' wait for the command prompt, be sure to set ReceiveTimeout to nonzero number
Rlogin1.ReceiveTimeout = 5000
Dim s As String = Rlogin1.WaitFor("~>")
Debug.WriteLine(s)


' Send PWD command
Rlogin1.Send("pwd" + vbCrLf)

' Receive the response
Dim Seg As Segment = Rlogin1.Receive()
Debug.WriteLine("Current dir: " + Seg.ToString())

 ' Close the connection
Rlogin1.Close()