コード例 #1
0
ファイル: FtpListener.cs プロジェクト: QardenEden/Suru
	///<summary>Called when there's an incoming client connection waiting to be accepted.</summary>
	///<param name="ar">The result of the asynchronous operation.</param>
	public override void OnAccept(IAsyncResult ar) {
		try {
			SecureSocket NewSocket = (SecureSocket)ListenSocket.EndAccept(ar);
			if (NewSocket != null) {
				FtpClient NewClient = new FtpClient(NewSocket, new DestroyDelegate(this.RemoveClient));
				AddClient(NewClient);
				NewClient.StartHandshake();
			}
		} catch {}
		try {
			ListenSocket.BeginAccept(new AsyncCallback(this.OnAccept), ListenSocket);
		} catch {
			Dispose();
		}
	}
コード例 #2
0
ファイル: FtpDataConnection.cs プロジェクト: pusp/o2platform
	///<summary>Called when the proxy server processes a PASV command.</summary>
	///<param name="Parent">The parent FtpClient object.</param>
	public void ProcessPasv(FtpClient Parent) {
		this.Parent = Parent;
		ExpectsReply = true;
	}
コード例 #3
0
 ///<summary>Called when the proxy server processes a PASV command.</summary>
 ///<param name="Parent">The parent FtpClient object.</param>
 public void ProcessPasv(FtpClient Parent)
 {
     this.Parent  = Parent;
     ExpectsReply = true;
 }