using System;
using Renci.SshNet.Common;
namespace Renci.SshNet.Messages.Transport
{
///
/// Represents SSH_MSG_SERVICE_ACCEPT message.
///
[Message("SSH_MSG_SERVICE_ACCEPT", MessageNumber)]
public class ServiceAcceptMessage : Message
{
internal const byte MessageNumber = 6;
///
/// Gets the name of the service.
///
///
/// The name of the service.
///
public ServiceName ServiceName { get; private set; }
///
/// Called when type specific data need to be loaded.
///
protected override void LoadData()
{
ServiceName = ReadBinary().ToServiceName();
}
///
/// Called when type specific data need to be saved.
///
protected override void SaveData()
{
throw new NotImplementedException();
}
internal override void Process(Session session)
{
session.OnServiceAcceptReceived(this);
}
}
}