private string m_UserName = ""; // Holds loggedIn UserName. #endregion Fields #region Constructors /// <summary> /// Default constructor. /// </summary> /// <param name="clientSocket">Referance to socket.</param> /// <param name="server">Referance to NNTP server.</param> /// <param name="sessionID">Session ID which is assigned to this session.</param> /// <param name="logWriter">Log writer.</param> internal NNTP_Session(Socket clientSocket,NNTP_Server server,string sessionID,_LogWriter logWriter) { m_pClientSocket = clientSocket; m_pNNTP_Server = server; m_SessionID = sessionID; m_pLogWriter = logWriter; m_SessionStartTime = DateTime.Now; }
public NNTPServer() { // // Required for Windows Form Designer support // m_pServer = new NNTP_Server(); InitializeComponent(); m_pServer.SysError += new LumiSoft.Net.ErrorEventHandler(m_pServer_SysError); m_pServer.ListGroups +=new ListGroupsHandler(m_pServer_ListGroups); m_pServer.XoverInfo +=new XoverInfoHandler(m_pServer_XoverInfo); m_pServer.GroupInfo +=new GroupInfoHandler(m_pServer_GroupInfo); m_pServer.GetArticle +=new GetArticleHandler(m_pServer_GetArticle); m_pServer.StoreMessage +=new StoreMessageHandler(m_pServer_StoreMessage); m_pServer.NewNews +=new NewNewsHandler(m_pServer_NewNews); m_pServer.LogCommands = true; // // TODO: Add any constructor code after InitializeComponent call // m_sForm = this; }