Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
Send method
Sends data to the server.
Type
VoidSyntax
- C#
- VB.NET
public Void Send(Byte[] Data);
The Send(Data) syntax has these parts:
public Void Send(String Text);
The Send(Text) syntax has these parts:
public Void Send(Byte[] Data, Int32 Offset, Int32 Len);
The Send(Data,Offset,Len) syntax has these parts:
public Void Send(String Text, Int32 Offset, Int32 Len);
The Send(Text,Offset,Len) syntax has these parts:
The Send(Data) syntax has these parts:
Data | Data buffer that is sent. |
public Void Send(String Text);
The Send(Text) syntax has these parts:
Text | Text buffer that is sent. |
public Void Send(Byte[] Data, Int32 Offset, Int32 Len);
The Send(Data,Offset,Len) syntax has these parts:
Data | Data buffer that is sent. |
Offset | Offset in the buffer from where data is sent. |
Len | Total number of bytes that should be sent. |
public Void Send(String Text, Int32 Offset, Int32 Len);
The Send(Text,Offset,Len) syntax has these parts:
Text | Text buffer that is sent. |
Offset | Offset in the buffer from where data is sent. |
Len | Total number of bytes that should be sent. |
public Sub Send(ByVal Data As Byte[])
The Send(Data) syntax has these parts:
public Sub Send(ByVal Text As String)
The Send(Text) syntax has these parts:
public Sub Send(ByVal Data As Byte[], ByVal Offset As Int32, ByVal Len As Int32)
The Send(Data,Offset,Len) syntax has these parts:
public Sub Send(ByVal Text As String, ByVal Offset As Int32, ByVal Len As Int32)
The Send(Text,Offset,Len) syntax has these parts:
The Send(Data) syntax has these parts:
Data | Data buffer that is sent. |
public Sub Send(ByVal Text As String)
The Send(Text) syntax has these parts:
Text | Text buffer that is sent. |
public Sub Send(ByVal Data As Byte[], ByVal Offset As Int32, ByVal Len As Int32)
The Send(Data,Offset,Len) syntax has these parts:
Data | Data buffer that is sent. |
Offset | Offset in the buffer from where data is sent. |
Len | Total number of bytes that should be sent. |
public Sub Send(ByVal Text As String, ByVal Offset As Int32, ByVal Len As Int32)
The Send(Text,Offset,Len) syntax has these parts:
Text | Text buffer that is sent. |
Offset | Offset in the buffer from where data is sent. |
Len | Total number of bytes that should be sent. |
Remarks
Send method is used to send arbitrary data to server during connection. Depending on protocol currently used, wodSSH.NET will internally change data so it will be received properly on remote side. Data will be encrypted before sending over the network (in SSH protocols).Amount of data sent by one call to Send method can be of any size - although it is suggested that no more than 8k should be sent at once. Rather, use Send method several times, so internal buffers can be properly initialized. This is significant for SSH protocols because of internal buffering due to encryption.