This time the leader made me familiar with socket development, I spent three weeks to learn the relevant knowledge, including Java socket development, focused on learning Netty this asynchronous non-blocking communication framework.
Here I have encountered in the process of learning the useful information collated, for your reference.
The first step: Java Native Socket network Development learning
Focus on the basic principles of CS communication and those commonly used classes, and how to implement the process of communication.
This stage of the demo is mainly the TCP server to the client, UDP unicast, multicast, broadcast. Reference blog:
1. http://blog.csdn.net/qq_23473123/article/details/51461894 (TCP)
2. http://blog.csdn.net/dabing69221/article/details/17286441 (UDP)
Step Two: Netty Knowledge summary
1. First of all, refer to the Chinese translation of the essence of Netty, here is the website: https://waylau.com/essential-netty-in-action/, this place is very thorough and clear.
Focus on understanding some concepts, design principles.
2. Following are some practical demo walkthroughs, refer to the blog to learn netty:http://blog.csdn.net/linuu/article/details/51306480 familiar with specific cases. There's a folder called example in the Netty source code.
It contains a lot of demos.
3. Finally have time, go to turn over "Netty authoritative guide", check leak fill. This csdn has free download: http://download.csdn.net/detail/u011642663/9505891, source code also in Csdn can find.
PS: Sometimes some cases can not run, it is likely that the Netty version is wrong.
Netty from introductory to in-depth