示例#1
0
        private void handler_Closed(FtpSocketHandler handler)
        {
            m_apConnections.Remove(handler);

            if (ConnectionClosed != null)
            {
                ConnectionClosed(handler.Id);
            }
        }
示例#2
0
文件: FtpServer.cs 项目: emacslisp/cs
        public void Stop()
        {
            for (int nConnection = 0; nConnection < m_apConnections.Count; nConnection++)
            {
                FtpSocketHandler handler = m_apConnections[nConnection] as FtpSocketHandler;
                handler.Stop();
            }

            m_socketListen.Stop();
            m_theThread.Join();
        }
示例#3
0
        private void InitialiseSocketHandler(System.Net.Sockets.TcpClient socket)
        {
            FtpSocketHandler handler = new FtpSocketHandler(m_fileSystemClassFactory, m_nId);

            handler.Start(socket);

            m_apConnections.Add(handler);

            handler.Closed += new Assemblies.Ftp.FtpSocketHandler.CloseHandler(handler_Closed);

            if (NewConnection != null)
            {
                NewConnection(m_nId);
            }
        }
示例#4
0
		private void handler_Closed(FtpSocketHandler handler)
		{
			m_apConnections.Remove(handler);

			if (ConnectionClosed != null)
			{
				ConnectionClosed(handler.Id);
			}
		}
示例#5
0
		private void InitialiseSocketHandler(System.Net.Sockets.TcpClient socket)
		{
			FtpSocketHandler handler = new FtpSocketHandler(m_fileSystemClassFactory, m_nId);
			handler.Start(socket);

			m_apConnections.Add(handler);

			handler.Closed += new Assemblies.Ftp.FtpSocketHandler.CloseHandler(handler_Closed);

			if (NewConnection != null)
			{
				NewConnection(m_nId);
			}
		}