Exemplo n.º 1
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);
            }
        }
Exemplo n.º 2
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);
			}
		}