public ConnectionState(LogDelegate logToServerHandler) { ReceiveBuffer = new NBTConnectionReceiveBuffer(); SendQueue = new BlockingQueue <SessionPacket>(); LogToServerHandler = logToServerHandler; Dialect = SMBDialect.NotSet; }
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; }
public ConnectionState(ConnectionState state) { ClientSocket = state.ClientSocket; ClientEndPoint = state.ClientEndPoint; ReceiveBuffer = state.ReceiveBuffer; SendQueue = state.SendQueue; LogToServerHandler = state.LogToServerHandler; Dialect = state.Dialect; }
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; }
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; }
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()); } }