[Netty] introduction and use of three components in NIO
1. NIO basic introduction
Java NIO is synchronous and non blocking. NIO related classes are placed in Java NIO package and sub packages, and many classes of rewriting of the native IO.
NIO is buffer oriented or block oriented programming: data is read into a buffer that it will process later and can be moved in the buffer when needed, which i ...
Added by LexHammer on Sun, 30 Jan 2022 17:04:42 +0200
This article discusses the operation architecture of Netty core engine Reactor
This series of Netty source code analysis articles is based on 4.1.56 Final version
In this paper, the author will introduce the operation architecture of Netty's core engine Reactor. I hope that through this introduction, we can have a comprehensive understanding of how Reactor drives the operation of the whole Netty framework. It also pa ...
Added by aiikcmo on Sat, 29 Jan 2022 08:21:29 +0200
[Netty core technology and source code analysis] 02 Netty core module components
1 Bootstrap,ServerBootstrap
Bootstrap means boot. A Netty application usually starts with a bootstrap. Its main function is to configure the entire Netty program and connect various components in series. The bootstrap class in Netty is the startup boot class of the client program, and the ServerBootstrap is the startup boot class of the se ...
Added by jdashca on Thu, 27 Jan 2022 08:30:24 +0200
NioServerSocketChannel registration source code analysis
In the previous chapter, we analyzed the creation and initialization of NioServerSocketChaennl in Netty. In this chapter, we will continue to analyze the analysis of NioServerSocketChannel. NioServerSocketChannel is a channel object officially encapsulated by Netty, which is intended to replace or package the native SocketChannel object of JDK, ...
Added by punk3d on Wed, 26 Jan 2022 19:32:31 +0200
HashedWheelTimer usage and source code analysis
HashedWheelTimer introduced in this article is a tool class from Netty, which is in the Netty common package. It is used to implement delayed tasks. In addition, the content described below has nothing to do with Netty.
If you have seen Dubbo's source code, you will see it in many places. It is a very convenient and easy-to-use tool in the sce ...
Added by yarons on Wed, 26 Jan 2022 18:25:05 +0200
Full handwritten NettyIO model
preface
The last chapter introduces the development process and practical application of Io. When talking about the multithreading model of multiplexer, I have gone through it. This chapter will supplement here, and then go to Netty's IO model. Finally, the idea will be realized through code.
1, Introduce
In the previous chapter, a multiplex ...
Added by mcmuney on Sat, 22 Jan 2022 23:07:30 +0200
netty series: a good horse is equipped with a good saddle, and a matching selector is selected for the channel
brief introductionWe know that the foundation of netty is channel and the selector on channel. Of course, as a nio framework, channel and selector are not only the foundation of netty, but also the foundation of all nio implementations.Similarly, we know that netty has many different protocols. These protocols communicate on the channel. Will t ...
Added by mindspin311 on Fri, 21 Jan 2022 22:10:49 +0200
Basic concepts and preliminary learning in Netty
Important concepts
Channel
channel is one of the core concepts of Netty. It is the main body of Netty network communication. It is responsible for network communication, registration and data operation with the opposite end.
Every time Netty establishes a connection, there will be a corresponding channel instance, and there is the concept o ...
Added by sharma on Tue, 18 Jan 2022 20:43:10 +0200
05. Netty learning notes - (case: chat business)
netty notes summary: Netty Study Guide (summary of materials and articles)
according to Black horse programmer netty video tutorial Learn the notes you have made. Some of the contents are from the notes of the dark horse
Note demo case warehouse address: Github-[netty-learn]
Pit description
1. The subclass that implements SimpleC ...
Added by martian2k4 on Tue, 18 Jan 2022 13:31:02 +0200
Section 6 how TCP manages connections
In the process of learning Socket, I always wanted to learn about the bottom layer, so I found many materials on the Internet and found that there was still little description of the bottom layer. Finally, I found an article on managing Tcp connection. Because we know that Socket encapsulates Tcp/ip protocol, Socket itself is not a protocol, bu ...
Added by dsdsdsdsd on Fri, 14 Jan 2022 14:15:43 +0200