×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    RSocket: File Uploading

    Hi,

    I am trying to implement FTP RFC's using socket. File uploading, downloading, change dir, listing everything is working fine, but when I try to download file in a loop like downloading all the file from the directory, first file is downloading properly but on second file I am not getting ant response from socket.

    Server is an windows FTP server and its working fine with filezilla client. I am sure there I am missing something.

    Can any put some light on it what could be the reason of it.

    Thanks for your attention!!!
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: RSocket: File Uploading

    It is not that obvious what you exactly do. You may want to describe the FTP mode you use, perhaps the commands you give.

  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: RSocket: File Uploading

    Hi,

    The command is like

    PASV
    TYPE A
    REST 0
    RETR

    the first time after retrieve I am getting response from server and I am able to read data from socket but second time there is nothing written on socket it never comes in RUNL.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  4. #4
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: RSocket: File Uploading

    hi kkrish, when you get 2nd file, did you use new port command, or you can use ethereal catch net data, parse 2nd commmand is send to server.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  5. #5
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: RSocket: File Uploading

    Hi qxiaoyuan,

    Yes, I am getting the new port every time before putting RETR command, when I made passive command request at that time in response I get the IP and logical port.

    The thing is I am not getting any error nor an data on socket.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  6. #6
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: RSocket: File Uploading

    Hi,

    Any help guys is appreciated!!!
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  7. #7
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: RSocket: File Uploading

    i suggest you upload the thread your catched network data by ethereal or tcmdump, it will give all info. and show what is problem.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

Similar Threads

  1. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  2. Uploading JPEG file to server
    By kumar_sai123 in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-11-14, 10:51
  3. File Uploading
    By javadev2 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-09-25, 07:26
  4. KERN-EXEC3 in uploading file using RHTTPSession
    By Utk in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-06-29, 14:17
  5. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

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