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

  • Home
  • SEARCH
  • 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 6366919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:29:01+00:00 2026-05-25T00:29:01+00:00

I’m getting into socket programming on C#.net for the project I am writing. The

  • 0

I’m getting into socket programming on C#.net for the project I am writing.

The project will be a multi-client system of which the client services monitor system resources and report back to a central server(s).

I was looking into Remoting, WCF etc. to determine which would be best for me. I settled with socket programming because of a number of requirements:

  • Sockets are faster than the rest with little overhead
  • I can support more connections per resources on the servers
  • Sockets can, with albeit modifications, allow me to interact with UNIX based systems also.
  • I can implement encryption on the link myself in code without having to rely on an SSL cert.

I may be wrong in my thinking here? If I am please do tell. Some suggest WCF as it is “wasy to use” and does everything I want but I believe it is that much slower with overheads.

My main issue is, that while the client machine will not keep a connection open, there could be thousands, or tens of thousands, of client machines and I would have to assume that the machine will be hammered with connections. Considering minimum times between connections, per client, may be as small as 1 min.

Now to my problem at hand: How to send multiple objects over the link and more importantly how to determine what they are on the other side?

I’m assuming this is possible over one connection as I have read a number of articles saying so, albeit they describe the methods differently and so are the examples.

The issue is I can’t find any example that actually does this. No example shows how to send multiple objects and then how to determine what they are on the other side.

Can anyone help me here or point me to examples. I’m quite able to figure stuff out once I have a base to work from.

  • 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-25T00:29:01+00:00Added an answer on May 25, 2026 at 12:29 am

    It feels like the classic case of premature optimization and reinventing the wheel. I might be mistaken because I don’t know what are your performance requirements, development resources and time frame. But I suspect that very smart people had the same problems before you. And they came up with the variety of solutions, including HTTP (SOAP, REST) and XMPP (if you want statefull protocol). A lot can be done to improve performance even at the app level (minimizing amount of data send over wire, caching etc). Without complexity overhead introduced by using sockets directly. You probably know all of this but I highly recommend you to evaluate your decision again.

    As to usual serialization format suspects like XML and JSON you might also want to look at Protocol Buffers:

    protocol buffers is the name of the binary serialization format used
    by Google for much of their data communications. It is designed to be:

    • small in size – efficient data storage (far smaller than xml)
    • cheap to process – both at the client and server
    • platform independent – portable between different programming architectures
    • extensible – to add new data to old messages
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I need a function that will clean a strings' special characters. I do NOT
I am writing an app with both english and french support. The app requests

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.