C # Socket server framework SuperSocket tutorial (a)

I. Introduction

SuperSocket is a lightweight, cross-platform and scalable .Net / Mono Socket server framework. You do not know how to use Socket, how to maintain Socket Socket connection and how to work, but you can use SuperSocket easily develop a Socket server-side software, such as game servers, GPS server, industrial control and data acquisition servers, and so service .

  • Performance event driven communication;
  • Very simple to use; you just need to be able to get a robust Socket server by creating a few classes;
  • Built-in command line protocol allows you to create a network server command line interface quickly;
  • Powerful and high-performance protocol analysis tools to help you achieve simplifies the analysis of network data;
  • Flexible configuration capabilities and friendly configuration API;
  • Multi-monitor support; allows you to monitor multiple ports within a server instance;
  • Examples of multi-server hosting support lets you easily face the complexity of deployment needs;
  • Application domain and process-level isolation to meet your host most of the scene;
  • Built-in SSL / TLS encryption support;
  • Session-level send queue allows you to send data by concurrent sessions, and maintain high performance and controllability;
  • SuperSocket command processing mode allows your business logic clearer, more structured;
  • Excellent scalability API Support: Command Filter, Connection Filter, Command Loader;
  • Alternatively log architecture allows you to use your favorite log component;
  • Support for dynamic languages; allow you to use a scripting language like Python to implement command;
  • Binary level compatibility with the Mono / Linux;
  • Windows Azure support;
  • You can directly built Socket policy server for Flash or Silverlight client;

II. References

Use Nuget Manager installation SuperSocket.Engine, displays have been installed SuperSocket, SuperSocket.Engine, which comes at the same time log4net, if the project itself has its own log4net, log4net to avoid version conflicts after installation.

 The plug-in is already included (SuperSocket plug)

Note: SuperSocket which integrates log4net (if your program has been introduced log4net, must pay attention to whether the version, and if not, will complain)

III. Architecture design schematic

SuperSocket hierarchy of

SuperSocket Layers

FIG schematic object model SuperSocket

SuperSocket Object Model

Request processing model schematic SuperSocket

SuperSocket Request Handling Model

SuperSocket isolation schematic model

SuperSocket Isolation Model

ps: the above are switched http://www.supersocket.net/

 

Guess you like

Origin blog.csdn.net/a462575515/article/details/93462123