PowerTCP SSH and SFTP for .NET
RequestX11Forwarding Method




The hostname of the real (target) X11 server (e.g., 127.0.0.1)
The port of the real (target) X11 server (e.g., 6010)
Cookie presented to the real X11 server
If true, instructs the server to only forward a single connection
Requests X11 forwarding for the current session.
Syntax
'Declaration
 
Public Sub RequestX11Forwarding( _
   ByVal hostname As String, _
   ByVal port As Integer, _
   ByVal cookie() As Byte, _
   ByVal singleConnection As Boolean _
) 
'Usage
 
Dim instance As Session
Dim hostname As String
Dim port As Integer
Dim cookie() As Byte
Dim singleConnection As Boolean
 
instance.RequestX11Forwarding(hostname, port, cookie, singleConnection)
public void RequestX11Forwarding( 
   string hostname,
   int port,
   byte[] cookie,
   bool singleConnection
)
public: void RequestX11Forwarding( 
   string* hostname,
   int port,
   byte[]* cookie,
   bool singleConnection
) 
public:
void RequestX11Forwarding( 
   String^ hostname,
   int port,
   array<byte>^ cookie,
   bool singleConnection
) 

Parameters

hostname
The hostname of the real (target) X11 server (e.g., 127.0.0.1)
port
The port of the real (target) X11 server (e.g., 6010)
cookie
Cookie presented to the real X11 server
singleConnection
If true, instructs the server to only forward a single connection
Exceptions
ExceptionDescription
System.IO.IOExceptionThrown if the Session or the underlying connection is closed, if X11 forwarding has already been requested for this Session, or if a remote execution has already started.
Remarks

This method may only be called before a program or shell is started in this session.

See Also

Reference

Session Class
Session Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic