You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace Renci.SshNet.Messages.Transport
|
|
{
|
|
/// <summary>
|
|
/// Represents SSH_MSG_SERVICE_ACCEPT message.
|
|
/// </summary>
|
|
[Message("SSH_MSG_SERVICE_ACCEPT", MessageNumber)]
|
|
public class ServiceAcceptMessage : Message
|
|
{
|
|
internal const byte MessageNumber = 6;
|
|
|
|
/// <summary>
|
|
/// Gets the name of the service.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The name of the service.
|
|
/// </value>
|
|
public ServiceName ServiceName { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Called when type specific data need to be loaded.
|
|
/// </summary>
|
|
protected override void LoadData()
|
|
{
|
|
ServiceName = ReadBinary().ToServiceName();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Called when type specific data need to be saved.
|
|
/// </summary>
|
|
protected override void SaveData()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
internal override void Process(Session session)
|
|
{
|
|
session.OnServiceAcceptReceived(this);
|
|
}
|
|
}
|
|
}
|