internal static IPacket CreateSftp(Session session, byte[] data) { IPacket p = null; SftpMessageCode code = (SftpMessageCode)data[13]; if (typeLookupSftp.ContainsKey(code)) { var types = typeLookupSftp[code]; Type type = types.First(); if (type != null) { p = BuildSftp(data, type); } } return(p); }
public SftpPacket(uint channel, SftpMessageCode code) : this(code) { this.Channel = channel; }
public SftpPacket(SftpMessageCode code) : this() { this.SftpCode = code; }
public SftpPacketAttribute(SftpMessageCode code) { this.MessageCode = code; }