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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:14:57+00:00 2026-05-23T13:14:57+00:00

Im currenty writing a network layer of an iPhone app and accompanying server. The

  • 0

Im currenty writing a network layer of an iPhone app and accompanying server. The iPhone app operates in both a host mode and guest mode, and also communicates with a server, for relaying messages over 3G between devices. Both are written in C#, and im using sockets. Id like to stick with binary comms, for speed and efficency reasons.

Is there a correct design approach to designing the network layer, specifically the packets that will be transferred between server and client?

Should I create a base class as my first version, which allows basic operation of the system, then inherit from that for future versions and changes, serializing this?

I understand XML is an option, but I did some tests and XML serialization on an iPhone is orders of magnitude slower than binary serialization, and ultimately, parts of the network layer NEED to be binary, as im sending files between devices.

My app will need to be backward and forward compatible with different versions. I dont expect to have large changes in future to the functionality, but probably some form of new features.

Ive read this question: Backwards compatibility in .NET with BinaryFormatter

The last answer seems to be the best option, using a “manual” deserialization and serialization approach. Im just wondering is this the only option.

  • 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-05-23T13:14:57+00:00Added an answer on May 23, 2026 at 1:14 pm

    Sorry your question is too vague. You need to do some reading and come back with some clearer questions.

    It does sound like you are intending to use C#, which won’t work on an iOS device. So you are going to have to write seperate code for the device and server. Given that, the structure of your network packets (XML or binary) is not going to matter that much because they will be handled differently on the two systems.

    Working in XML or JSON would be recommended by most poeple I think, simply because they have wide support and are much easier to work with that some custom binary format. Whether they are slower than a binary form will depend alot on your data. And the age old question that we always ask first – is the difference noticable enough to warrant the extra effort. In most cases, probably not. people tend to over-emphasis the necessity for speed sometimes, not realising that unless you have a lot of data to transmit, your network connection, not your packet format, will be the limiting factor.

    So the way I’d probably appraoch each end of the equation (server C#, and iPhone Objectice C) would be to create a seperate class for managing the communications and one or more classes for handling the serialising/deserialising. This gives you the flexibility to swap out technologies as and if you need to.

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

Sidebar

Related Questions

I'm writing a sinatra app in ruby that gathers information about my network into
I'm currently writing a multi-process network game server (one gatekeeper process which tells players
I'm currently writing a simple app that performs a series of requests to the
I am currently writing a simple IOS app that saves tasks into a table.
I'm writing a UDP server that currently receives data from UDP wraps it up
I've got an event-driven network server program. This program accepts connections from other processes
I am currently writing an app on the Blackberry to do a simple send
I am currently in the process of writing a network data usage monitor in
I am writing a pyQt client-server application which restarts/shutdowns PCs remotely. The receivers are
I'm writing a network application in ruby which should use UDP multicasting. My problem

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.