仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
This commit is contained in:
53
lib/Packet.Net/PacketDotNet/Tcp/Echo.cs
Normal file
53
lib/Packet.Net/PacketDotNet/Tcp/Echo.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
This file is part of PacketDotNet
|
||||
|
||||
PacketDotNet is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
PacketDotNet is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with PacketDotNet. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2010 Evan Plaice <evanplaice@gmail.com>
|
||||
*/
|
||||
using System;
|
||||
|
||||
namespace PacketDotNet.Tcp
|
||||
{
|
||||
/// <summary>
|
||||
/// An Echo Option
|
||||
/// throws an exception because Echo Options
|
||||
/// are obsolete as per their spec
|
||||
/// </summary>
|
||||
public class Echo : Option
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Creates an Echo Option
|
||||
/// </summary>
|
||||
/// <param name="bytes">
|
||||
/// A <see cref="System.Byte[]"/>
|
||||
/// </param>
|
||||
/// <param name="offset">
|
||||
/// A <see cref="System.Int32"/>
|
||||
/// </param>
|
||||
/// <param name="length">
|
||||
/// A <see cref="System.Int32"/>
|
||||
/// </param>
|
||||
public Echo(byte[] bytes, int offset, int length) :
|
||||
base(bytes, offset, length)
|
||||
{
|
||||
throw new NotSupportedException("Obsolete: The Echo Option has been deprecated.");
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user