Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2007, 06:43 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ftp upload using PORT mode

Hi,

I'm working on a project where we need to use a ftp client for downloads and uploads. We formerly used a project downloaded from the internet, FtpFactory. This programm only supports passive mode.

We need to use PORT mode now. All goes well for downloading a file from the server. I use a socket that listens to the port I specified and when data is received it triggers a specific method:

socket.BeginAccept(new AsyncCallback(this.AcceptCallback), listensocket);
private void AcceptCallback(IAsyncResult ar)
        { .. start processing incoming data... }

However I also need to be able to upload files. I just can't get the better of this problem. Can someone help me on this one. The socket I'm listening on is not connected, so I cant use it for uploading (sending).

Thanks in advance,

Roeland

Roeland





Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Upload in ASCII David_0223 C# 1 August 20th, 2008 10:56 AM
ftp file upload yugi9966 ADO.NET 1 August 7th, 2008 09:09 AM
FTP Upload from Excel 2003 VBA Jersey Eric Excel VBA 3 January 5th, 2006 09:29 AM
Upload Of Excel file to FTP Site shahbazr4 Java Databases 0 May 2nd, 2005 04:01 AM
Automate the ftp Upload of a Comma-Delineated File darinsee Access ASP 0 February 11th, 2004 10:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.