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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:56:48+00:00 2026-05-17T22:56:48+00:00

Earlier on I’ve implemented a custom C++ server from scratch, something which is nice

  • 0

Earlier on I’ve implemented a custom C++ server from scratch, something which is nice and fun to do but is very time-consuming.

So I’ve heard about “servlet” of Java which sounds like something I’m looking for for my next project.

I’m looking at ASP.NET to be used as a servlet because it’s pretty much mature in terms of networking capabilities and programming features and I can write code for it in C# which is a language I already know and feels good with.

Anyway before getting into it I’d like to get concise answers regarding some of the capabilities that ASP.NET may provide me with.
My client application is Flash-based and has nothing to do with XML or HTTP protocols (raw sockets).

1) Can I accept raw (in terms of protocol) socket connections and keep them alive as long as needed?
2) How hard/complicated is it to apply AES encryption over a connected socket?
3) Can I have a “shared”, in-memory, objects, like lists, over the application’s instance?
4) Can I get one message from client X and send a copy/reply/report (on the fly) to client Y, without using a database or anything like that? This question suggests question #5.
5) Can I identify a connection by its memory address or object address, so I can refer to it directly?
6) Can my application be distributed over several servers?
7) How hard/complicated is it to scale such an application? For 10 concurrent connections there’s no problem but for 50,000 I can surely expect load issues.
8) Finally, the most important question which probably has the most complex answer: How flexible is the environment from a programmer perspective? I mean, can I control events such as “on_connect”, “on_disconnect” and stuff like that? How hard would it be to access connection Y from connection X’s event (such as “on_data_received”)?

  • 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-17T22:56:49+00:00Added an answer on May 17, 2026 at 10:56 pm

    ASP.Net is more like JSP than Java Servlets as it requires a web server to run. Typically IIS is used since Microsoft has built in ASP.Net support there, but it’s possible to run ASP.Net on other web servers. As a web server product it’s all HTTP and therefor connectionless. Based on your questions 1, 2, 4, 5 and 8 this may be a deal-killer for you.

    If you can code your Flash application to manage itself with HTTP/HTTPS connections then using ASP.Net to build out web services that your app can use is a decent option. IIS is mature and can scale out nicely (q’s 6 & 7). It also has an application-level store that you can use (q3). Of course each server in a farm would have its own copy.

    It’s possible to implement your own server in C# with a lot less effort than in C++, but it’s still a time consuming endeavor. The TcpListener class in System.Net.Sockets would be the starting point if you chose to go that route.

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

Sidebar

Related Questions

From an earlier post about trying to improve my sites performance I have been
Earlier today a question was asked regarding input validation strategies in web apps .
Earlier this week I ask a question about filtering out duplicate values in sequence
Earlier I asked this question How to correctly unit test my DAL? , one
Earlier versions of the Notes client would automatically turn a sent URL into a
Earlier I asked a question about why I see so many examples use the
Earlier I asked why this is considered bad: class Example { public: Example(void); ~Example(void);
Earlier today I asked a question about environ , and one of the more
Relating to my earlier question , I want to ensure all the child objects
I was thinking earlier today about an idea for a small game and stumbled

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.