Back to product page

Send method


Sends data to the server.

Type

Void

Syntax

  • C#
  • VB.NET
public Void Send(Byte[] Data);
The Send(Data) syntax has these parts:
DataData buffer that is sent.

public Void Send(String Text);
The Send(Text) syntax has these parts:
TextText buffer that is sent.

public Void Send(Byte[] Data, Int32 Offset, Int32 Len);
The Send(Data,Offset,Len) syntax has these parts:
DataData buffer that is sent.
OffsetOffset in the buffer from where data is sent.
LenTotal 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:
TextText buffer that is sent.
OffsetOffset in the buffer from where data is sent.
LenTotal number of bytes that should be sent.

public Sub Send(ByVal Data As Byte[])
The Send(Data) syntax has these parts:
DataData buffer that is sent.

public Sub Send(ByVal Text As String)
The Send(Text) syntax has these parts:
TextText 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:
DataData buffer that is sent.
OffsetOffset in the buffer from where data is sent.
LenTotal 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:
TextText buffer that is sent.
OffsetOffset in the buffer from where data is sent.
LenTotal 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.

Platforms

Windows