Results 1 to 4 of 4

Thread: Reliable HTTP communication over GPRS

  1. #1
    Join Date
    Nov 2009
    Posts
    60
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Reliable HTTP communication over GPRS

    Hi,

    I am working on an application which is supposed to large XML data to webserver by GPRS.
    I am using HTTP get/post for transferring data,I have observed that server is not receiving all the data send by my device by http post.I understand http uses TCP as transport medium and losses are due to delay , data traffic in GPRS/GSM network.Kindly let me know the correct way/best practice for reliable data transfer on GPRS network,please correct me if my understating is wrong.

    Thanks in advance.

    Ratheendran

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Reliable HTTP communication over GPRS

    TCP is a connection based reliable communication protocol. Losses may be due to your application, or how it uses get/post. Even if there is a delay the data delivery is sure.

    By the way what is your Qt related question in this post?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Nov 2009
    Posts
    60
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Reliable HTTP communication over GPRS

    Thanks for the reply.

    I understand TCP is a reliable protocol,and delay in GPRS data transfer is causing the server to close the socket and incomplete data is received by upper layer,I want to know if QT can catch this kinds of error,or in case of abrupt communication failure.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Reliable HTTP communication over GPRS

    Your QNetworkReply object will emit a error() signal closely followed by a finished() signal when the connection is terminated. QNetworkReply::error() will give you details of the problem.

Similar Threads

  1. Sending sms and gprs data using Qt
    By malikSnisar in forum Newbie
    Replies: 8
    Last Post: 25th May 2011, 06:43
  2. GPRS Connection
    By spaccabbomm in forum Qt Programming
    Replies: 6
    Last Post: 4th December 2009, 15:02
  3. How reliable are QTimers on Windows?
    By Cruz in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2009, 22:36
  4. A reliable way to get the size of a checkbox indicator
    By zoeker in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2008, 21:05
  5. Is there a GPRS application in qtopia?
    By mellibra in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 18th December 2006, 01:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.