コード例 #1
0
 public ConnectionState(LogDelegate logToServerHandler)
 {
     ReceiveBuffer      = new NBTConnectionReceiveBuffer();
     SendQueue          = new BlockingQueue <SessionPacket>();
     LogToServerHandler = logToServerHandler;
     Dialect            = SMBDialect.NotSet;
 }
コード例 #2
0
 public SessionInformation(IPEndPoint clientEndPoint, SMBDialect dialect, string userName, string machineName, List <string> openFiles, DateTime creationDT)
 {
     ClientEndPoint = clientEndPoint;
     Dialect        = dialect;
     UserName       = userName;
     MachineName    = machineName;
     OpenFiles      = openFiles;
     CreationDT     = creationDT;
 }
コード例 #3
0
 public ConnectionState(ConnectionState state)
 {
     ClientSocket       = state.ClientSocket;
     ClientEndPoint     = state.ClientEndPoint;
     ReceiveBuffer      = state.ReceiveBuffer;
     SendQueue          = state.SendQueue;
     LogToServerHandler = state.LogToServerHandler;
     Dialect            = state.Dialect;
 }
コード例 #4
0
ファイル: ConnectionState.cs プロジェクト: gonsovsky/dnSvc
 public ConnectionState(ConnectionState state)
 {
     m_clientSocket     = state.ClientSocket;
     m_clientEndPoint   = state.ClientEndPoint;
     m_receiveBuffer    = state.ReceiveBuffer;
     m_sendQueue        = state.SendQueue;
     m_creationDT       = state.CreationDT;
     m_lastReceiveDT    = state.LastReceiveDT;
     m_lastSendDTRef    = state.LastSendDTRef;
     LogToServerHandler = state.LogToServerHandler;
     Dialect            = state.Dialect;
 }
コード例 #5
0
ファイル: ConnectionState.cs プロジェクト: gonsovsky/dnSvc
 public ConnectionState(Socket clientSocket, IPEndPoint clientEndPoint, LogDelegate logToServerHandler)
 {
     m_clientSocket     = clientSocket;
     m_clientEndPoint   = clientEndPoint;
     m_receiveBuffer    = new NBTConnectionReceiveBuffer();
     m_sendQueue        = new BlockingQueue <SessionPacket>();
     m_creationDT       = DateTime.UtcNow;
     m_lastReceiveDT    = DateTime.UtcNow;
     m_lastSendDTRef    = DateTime.UtcNow;
     LogToServerHandler = logToServerHandler;
     Dialect            = SMBDialect.NotSet;
 }
コード例 #6
0
        internal static SMB2Dialect ToSMB2Dialect(SMBDialect smbDialect)
        {
            switch (smbDialect)
            {
            case SMBDialect.SMB202:
                return(SMB2Dialect.SMB202);

            case SMBDialect.SMB210:
                return(SMB2Dialect.SMB210);

            case SMBDialect.SMB300:
                return(SMB2Dialect.SMB300);

            default:
                throw new ArgumentException("Unsupported SMB2 Dialect: " + smbDialect.ToString());
            }
        }