Home  >  Article  >  Backend Development  >  Example sharing of FastSocket practical projects in C#

Example sharing of FastSocket practical projects in C#

黄舟
黄舟Original
2017-09-20 11:03:593012browse

1. FastSocket Course Introduction

.NET Framework Although Microsoft provides a class library for socket communication, there are still many things that need to be handled by yourself. For example, the TCP protocol needs to handle sub-packaging, packet grouping, and packet sticking. To maintain the connection list, etc., the UDP protocol needs to deal with packet loss and reordering, and for multi-connection concurrency, it has to handle multi-threading by itself, etc. In this sharing course, Aben brings you the open source Socket communication middleware from github: FastSocket. The purpose is to completely liberate and release everyone from the cumbersome network programming technology.

Aben just wants to quietly learn the network programming technology Socket, and then directly and flexibly apply the learning results to his actual projects. All courses that only teach conceptual knowledge without combining it with practical exercises are just hooligans! So in this sharing class, Aben will not talk about conceptual knowledge, but only focus on practical exercises. Don't tell programmers about the IOCP model of network programming. When programmers pick up the keyboard, they just say three words: "type code"!

In this course, ABen brings you two practical project demonstration examples based on FastSocket communication components:

1. Client and server chat applications developed based on FastSocket (ABenNET. FastSocket.AppChat).

2. Online client monitoring application developed based on FastSocket (ABenNET.FastSocket.AppMonitor).

If you are interested in this issue's "C# Network Programming Technology FastSocket Practical Project Drill" course, then please follow Aben and learn together! Without further ado, let’s get straight to the dry goods. We don’t produce dry goods, we are just transporters of dry goods.


2. Introduction to FastSocket and Practical ProjectScreenshots

2.1. What is FastSocket?

When Aben first discovered FastSocekt, an open source communication framework, he was deeply attracted by it. Its elegant writing and simple use are what Aben values ​​most; FastSocket abstracts network programming, allowing developers to not worry about the underlying communication mechanism, but only focus on application-level development work.

2.2. Advantages of FastSocket

1), comes with heartbeat check function.

2), comes with disconnection and reconnection function.

3), supports flexible custom communication protocols and communication instructions (FastSocket has built-in command line, binary, and thrift protocols).

Wait...

2.3, FastSocket online download address:

https://github.com/ihaoqihao/FastSocket.Net

2.4 , practical project drill course screenshots, AppChat, AppMonitor practical project

course detailed example screenshots, and AppChat, AppMonitor demonstration sample applications, Aben provides it to everyone for free online viewing and downloading.

Note: .NET FreamWork 4.5 framework needs to be installed




##AppChat practical project


##AppMonitor practical project

三,

AppChat practical drill

Source code online demonstration and interpretation


##AppChat practical drill

Source code

4.

AppMonitor

Practical drillOnline demonstration and interpretation of source code

The above is the detailed content of Example sharing of FastSocket practical projects in C#. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn