table of Contents
1. Method: Socket, full stack, cross-platform
1. Method: Socket, full stack, cross-platform
Socket
Use C++ and Socket API to build a network communication engine with millions of processing capabilities
Full stack
It not only includes the development knowledge of the back-end (server), but also includes the knowledge of network communication of the front-end (client), and will be applied in the mainstream engine tools.
Cross-platform
The technical knowledge and design solutions in the project can be applied to mainstream operating systems such as Windows/Linux/Android/IOS, and other languages supporting Socket have also begun to be used for reference.
Two, development tools
Windows
Windows10+ Visual Studio 20XX
Linux
Linux (ubuntu 16.04 64 bit)/GCC/Gedit editor
Visual Studio Code
Android
Windows 10 + VS2015 + NDK + JDK + ADT + ANT
IOS / Macos
MacOS (MacOS 10.12 64 位) + Xcode 9
Auxiliary tools
Virtual machine VMware Player, code management tool SVN, text comparison tool WinMarge and other auxiliary development tools
Three, study plan
- Learn how to build C++ development environment under different platforms.
- Learn the basics of Socket network communication.
- Learn the front-end (client) network communication and apply it to the commercial tool engine.
- Learn the back-end (server) network communication and build a high-performance server step by step.
Final task
From 1 user connection to 10,000 user links, from 1 user/1 data packet per second, to 10,000 users/1 million data packets, we explore performance bottlenecks,
solve bottlenecks, and add optimization points step by step. Before and after comparison, in-depth analysis of each optimization solved those problems. Really master the core knowledge.