Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8850653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:57:08+00:00 2026-06-14T12:57:08+00:00

I am writing an application that connects and constantly communicates with our server over

  • 0

I am writing an application that connects and constantly communicates with our server over the course of a day.

During this day a user might or might not loose their connection, being out of range etc I was wondering what is the best way to handle these instances, in regards to the way my code acts and also they way I inform the user.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:57:09+00:00Added an answer on June 14, 2026 at 12:57 pm

    *NOTE: I am assuming that you want to perform network operations across HTTP

    Reads

    For data that is read, it depends on what your assumptions are around how fast it changes.

    For changeable data (data that is anticipated to change say a few times per day), use SDURLCache. SDURLCache provides the HTTP local cache. If you hook it up with AFNetworking, then it will also respect standard HTTP caching behaviours (expire headers, etags etc).

    For ‘static’ data, you can bundle the data locally with the application, and periodically check for updates via HTTP.

    In either case, you should try (if possible) to package some data with the app so that the day the App is installed, it may not need network connectivity to run at all.

    Writes

    For writes, the best way to handle this is to queue all your writes and post them at an appropriate time. Implementing a queue is relatively simple, and much will depend on how to store things locally. One way would be to set flags in the SQLite db table to indicate data elements that need posting to the server side. Another could be to construct documents and write them to disk, having a separate dispatch thread to post them off to the server side when there is connectivity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a software application in C#.Net that connects to a SQL Server database.
I am writing a C# console application that connects to a server trough TCP,
I am writing a TCP server application using Winsock. The client that connects to
I'm writing a database application that connects to SQL server. I'd like to implement
I'm writing a C# console application that connects to a server via TCP and
I'm writing a web application that connects to a database. I'm currently using a
I am writing my C# application that connects to database, does couple selects and
I am writing an application that allows a user to place images on a
I'm writing an application that gives the user the option to resize an image
I'm writing an application that will create difficult passwords for the user. The user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.