Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET as server app - questions before I'm getting into it
    text
    copied!<p>Earlier on I've implemented a custom C++ server from scratch, something which is nice and fun to do but is very time-consuming.</p> <p>So I've heard about "servlet" of Java which sounds like something I'm looking for for my next project.</p> <p>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.</p> <p>Anyway before getting into it I'd like to get concise answers regarding some of the capabilities that ASP.NET may provide me with.<br> My client application is Flash-based and has nothing to do with XML or HTTP protocols (raw sockets).</p> <p><strong>1) Can I accept raw</strong> (in terms of protocol) <strong>socket connections</strong> and <strong>keep them alive</strong> as long as needed?<br> <strong>2)</strong> How hard/complicated is it to <strong>apply AES encryption</strong> over a connected socket?<br> <strong>3)</strong> Can I have a <strong>"shared", in-memory, objects</strong>, like lists, <strong>over the application's instance</strong>?<br> <strong>4)</strong> 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.<br> <strong>5)</strong> Can I identify a connection by its memory address or object address, so I can refer to it directly?<br> <strong>6)</strong> Can my application be distributed over several servers?<br> <strong>7)</strong> How hard/complicated is it to <strong>scale such an application</strong>? For 10 concurrent connections there's no problem but for 50,000 I can surely expect load issues.<br> <strong>8)</strong> Finally, the most important question which probably has the most complex answer: <strong>How flexible is the environment from a programmer perspective?</strong> I mean, can I control events such as "on_connect", "on_disconnect" and stuff like that? How hard would it be to <strong>access connection Y from connection X's event (such as "on_data_received")?</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload