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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:46:23+00:00 2026-05-21T11:46:23+00:00

I am attempting to send player information from my Game to my network client

  • 0

I am attempting to send player information from my Game to my network client to then be sent off to the server.

Currently the ClientNetwork -> ClientGame relationship is held with XML files. They read/write back and forth at very high speeds. If you use just one XML file for this trade, one will “hog” the file at times, making a kind of lag when one cannot read because the other is viciously writing and rewriting.

To fix this I have 2 of each of my XML files. If it cannot read one, it will read the other. In theory they should be using both of them, since it’d be a tradeoff from one to another. Not working up to par.

But my main problem is just the usage in general of XML is very sloppy, dozens of try-catch statements to make sure they’re all happy (and my personal favorite, try catches within try catches — WE HAVE TO GO DEEPER)

I am just curious of if there is a better way to be doing this. I need a static point of variables that can be accessed by both client side programs. I’m afraid someone is going to say databases…

I’d like to state for anyone who is looking into this as well and stumbled across this page that Shared Memory is awesome. Though I have to convert all strings to characters and then to bytes and read them one by one, in the whole it’s ALOT better than dealing with things that cannot read/write the same file at the same time. If you wish to further understand it rather than just use it, go to this link, it explains a lot of the messaging varieties and how to use them.

  • 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-21T11:46:23+00:00Added an answer on May 21, 2026 at 11:46 am

    Yes there is!

    The term you are looking for is interprocess communication – communication between two processes on the same machine.

    There are various methods which allow two processes on the same machine to communicate with each other, including:

    • Named pipes
    • Shared memory
    • Sockets
    • HTTP

    Fortunately C# applications can simply use the WCF framework to perform IPC (interprocess communication) using one of the above, and let the WCF framework take care of the difficult bits! Here are a couple of guides to get you started (there are many more):

    • WCF Tutorial – Basic Interprocess Communication
    • Many to One Local IPC using WCF and NetNamedPipeBinding

    Also, one of the neat things about WCF is that you can also use it to communicate between different machines simply by changing the “Transport” (i.e. the communication method) to one which works over a network, (e.g. HTTP).

    If you are targetting .Net 2.0 then you should look into either .Net remoting or web services instead.

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

Sidebar

Related Questions

I'm am attempting to send a Game Center invitation. Sending from the simulator to
I am attempting to send a json message from a custom application to a
I have a problem when attempting to serialize class on a server, send it
I'm attempting to send a .proto message from an iPhone application to a Java
I am attempting to send a javascript array to my web server for an
I'm attempting to send an HTTP POST to a Rails 3 Application. Currently all
I am attempting to send data to a server in a separate thread and
I am attempting to send statuses to appFabric via a service bus from a
I'm attempting to send an image and some text to a server at the
I am attempting to send mail through my gmail account from a Dedicated Godaddy

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.