Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- Interfaces/
- Lsp/
- Netbios/
- Socket/
- Stream/
- Utilities/
- bin/
- obj/
- BytesBuffer.cs
- DataSequence.cs
- DecodePacketCallback.cs
- EndPointData.cs
- EventType.cs
- Role.cs
- SslProvider.cs
- StackTransportType.cs
- ThreadManager.cs
- TransportConfig.cs
- TransportEvent.cs
- TransportStack.cs
- TransportStack.csproj
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtoSDK/TransportStack/TransportConfig.cs
C# · 2,658 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Net;
namespace Microsoft.Protocols.TestTools.StackSdk.Transport
{
/// <summary>
/// TransportConfig stores the configurable parameters used by transport.<para/>
/// user can construct its sub classes, such as SocketTransportConfig, NetbiosTransportConfig
/// and StreamConfig.<para/>
/// user can also use the Create APIs of TransportConfig to create some specified config.
/// </summary>
public abstract class TransportConfig
{
#region Fields
/// <summary>
/// a const int value that specifies the default buffer size.
/// </summary>
private const int DefaultBufferSize = 8 * 1024;
/// <summary>
/// the transport role.
/// </summary>
private Role role;
/// <summary>
/// the transport type.
/// </summary>
private StackTransportType type;
/// <summary>
/// the size of buffer used for receiving data.
/// </summary>
private int bufferSize;
#endregion
#region Properties
/// <summary>
/// get/set a Role enum that specifies the transport role.
/// </summary>
public Role Role
{
get
{
return this.role;
}
set
{
this.role = value;
}
}
/// <summary>
/// get/set a StackTransportType enum that specifies the transport type.
/// </summary>
public StackTransportType Type
{
get
{
return this.type;
}
set
{
this.type = value;
}
}
/// <summary>
/// get/set an int value that specifies the size of buffer used for receiving data.<para/>
/// by default, it is 8192.
/// </summary>
public int BufferSize
{
get
{
return this.bufferSize;
}
set
{
this.bufferSize = value;
}
}
#endregion
#region Constructor
/// <summary>
/// constructor
/// </summary>
protected TransportConfig()
{
this.bufferSize = DefaultBufferSize;
this.role = Role.None;
this.type = StackTransportType.None;
}
#endregion
}
}