CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    163

    File Transfer using FTP/TCP IP in windows

    Hello,

    I need to copy a file from remote location.
    I know following information.

    a) Address of the remote file location
    b) Port number
    c) File Name
    d) Size of file in bytes

    How i copy the file from specified port/socket and write it to the file opened in local machine.
    Which C++ function/class help to achieve this.

    Please give some guidance to copy the specified number of bytes.

    Thanks
    Dave

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: File Transfer using FTP/TCP IP in windows

    A web search of MSDN FTP yielded all kinds of useful results.

  3. #3
    Join Date
    Apr 2008
    Posts
    163

    Re: File Transfer using FTP/TCP IP in windows

    Hi,

    will you tell how can i achieve the following steps

    _socket->open()

    _socket->set_option()

    _socket->bind()

    _socket->async_connect()

    in handleConnect(): _socket->async_read_some()

    will you give info where i can start as a beginner in client server communication

    Thanks
    Dave

  4. #4
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: File Transfer using FTP/TCP IP in windows

    In windows, the simplest way to download/upload a file is to use the WinInet functions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured