Thread: ftp server name problem.

  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257

    ftp server name problem.

    Hey,
    I ran into a wierd problem trying to connect to an ftp server. I have a pice of code that connects to the server and extract the names of all files i nthe main directory. I've ran it testing a lot last week and everything was fine, but now I get an error the "the server name or address could not be resolved". I got the same error with the public icrosoft FTP sserver after a bit of use. Any suggestions or ideas on what maybe causing this and how to fix it.

    Thank you.
    Everything is relative...

  2. #2
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257
    I think I solved the problem.
    I used
    Code:
    pConnect = isession.GetFtpConnection(_T("server"), "user");
    Instead of
    Code:
    pConnect = isession.GetFtpConnection(_T(server), "user");
    where server = "name of ftp server";

    I think that's it then.
    Everything is relative...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FTP server question
    By Draco in forum Tech Board
    Replies: 4
    Last Post: 06-01-2006, 10:13 PM
  2. Server recv data problem! Please help!
    By hyaku_ in forum Networking/Device Communication
    Replies: 15
    Last Post: 01-28-2005, 02:35 PM
  3. Whats FTP
    By Stan100 in forum Tech Board
    Replies: 13
    Last Post: 01-22-2004, 05:10 PM
  4. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM
  5. FTP server
    By Driveway in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 06-24-2002, 05:09 AM