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 7709953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:59:27+00:00 2026-06-01T00:59:27+00:00

I am building a professional iOS application where an iPad is a server and

  • 0

I am building a professional iOS application where an iPad is a server and several iPhones are clients.

Considering the fact that :
– communications operate only on a local network via sockets using TCP.
– I want to keep all of them in sync (all devices have a local database)
– I want to be able to send commands like NEW, UPDATE, DELETE, etc to keep them in sync
– I want be able to send notifications with some data attached (audio file),
– I want to define priorities for all of theses commands.

It makes me think that a need to define a protocol, so my question is : Does one already exist ?

Thanks a lot !

  • 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-01T00:59:28+00:00Added an answer on June 1, 2026 at 12:59 am

    You can listen socket messages, server can send simple structs with data url, commands to clients, and after that they can update data for example:

    #define MSG_DOWNLOAD 1
    
    typedef struct{
       uint8_t cmd;
       uint8_t size;
    } MSGHEADER
    
    typdef struct{
       MSGHEADER header;
       char url[255];
    } MSGDOWNLOAD;
    

    and in socket if you will get header with cmd = 1, you can send NSURLconnetion with url to your server and download some data and sync it.

    - (void)recivedDataFromBuffer:(NSData *)data
    {
    
        MSGHEADER *pMsgHdr;
        pMsgHdr = (MSGHEADER*)[data bytes];
    
        int headerCMD = pMsgHdr->cmd;
    
        if (headerCMD == MSG_DOWNLOAD)
        {
            MSGDOWNLOAD download = *(MSGDOWNLOAD *)pMsgHdr;
            download.header = *pMsgHdr;
    
            // do sync stuff send url request etc.
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a Web Application in ASP.NET 4.0, using VS 2010 Professional. I
I'm building a website that's primarily function is a map search and displays professional
I'm building a Windows Mobile application, based on WM 6.5 Professional SDK. I need
I've just started building an api and application that consumes from the api using
Building a client-side swing application what should be notified on a bus (application-wide message
building a site using PHP and MySQL that needs to store a lot of
Building a website that has English & Japanese speaking users, with the Japanese users
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
Does anyone have experience building a .NET test execution harness that can execute the

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.