Moved SMBDialect to a separate class

This commit is contained in:
Tal Aloni 2017-03-04 11:13:11 +02:00
parent f4fa70a280
commit cef7a6dc29
3 changed files with 12 additions and 8 deletions

View file

@ -191,6 +191,7 @@
<Compile Include="Server\ConnectionState\SMB1Session.cs" /> <Compile Include="Server\ConnectionState\SMB1Session.cs" />
<Compile Include="Server\ConnectionState\SMB2ConnectionState.cs" /> <Compile Include="Server\ConnectionState\SMB2ConnectionState.cs" />
<Compile Include="Server\ConnectionState\SMB2Session.cs" /> <Compile Include="Server\ConnectionState\SMB2Session.cs" />
<Compile Include="Server\Enums\SMBDialect.cs" />
<Compile Include="Server\Helpers\ServerPathUtils.cs" /> <Compile Include="Server\Helpers\ServerPathUtils.cs" />
<Compile Include="Server\NameServer.cs" /> <Compile Include="Server\NameServer.cs" />
<Compile Include="Server\Shares\FileSystemShare.cs" /> <Compile Include="Server\Shares\FileSystemShare.cs" />

View file

@ -15,14 +15,6 @@ namespace SMBLibrary.Server
{ {
public delegate void LogDelegate(Severity severity, string message); public delegate void LogDelegate(Severity severity, string message);
public enum SMBDialect
{
NotSet,
NTLM012, // NT LM 0.12
SMB202, // SMB 2.0.2
SMB210, // SMB 2.1
}
public class ConnectionState public class ConnectionState
{ {
public Socket ClientSocket; public Socket ClientSocket;

View file

@ -0,0 +1,11 @@
namespace SMBLibrary.Server
{
public enum SMBDialect
{
NotSet,
NTLM012, // NT LM 0.12
SMB202, // SMB 2.0.2
SMB210, // SMB 2.1
}
}