PowerTCP SSH and SFTP for .NET
Create Method (Packet)




SSH-2 packet bytes.
Byte count of the packet.
Creates a Packet, ChannelPacket, or SftpPacket, depending upon the packet content provided.
Syntax
'Declaration
 
Public Shared Function Create( _
   ByVal msg() As Byte, _
   ByVal msglen As Integer _
) As Packet
'Usage
 
Dim msg() As Byte
Dim msglen As Integer
Dim value As Packet
 
value = Packet.Create(msg, msglen)
public static Packet Create( 
   byte[] msg,
   int msglen
)
public: static Packet* Create( 
   byte[]* msg,
   int msglen
) 
public:
static Packet^ Create( 
   array<byte>^ msg,
   int msglen
) 

Parameters

msg
SSH-2 packet bytes.
msglen
Byte count of the packet.

Return Value

A Packet that can be cast to it's type to access packet properties.
See Also

Reference

Packet Class
Packet Members


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