Skip to content

Commit

Permalink
4.27 RPC框架-基于nio v.1.1版 添加了阻塞io传递的版本
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzzzzzzyt committed Apr 27, 2022
1 parent 08ecff3 commit 08a9524
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Binary file added images/1651044110072.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/1651067040657.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/1651067081930.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/1651067198890.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions 手写RPC框架.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@



![1650802303310](C:\Users\asus\AppData\Roaming\Typora\typora-user-images\1650802303310.png)
![1650802303310](images/架构图.png)



Expand Down Expand Up @@ -453,7 +453,7 @@ JDK自带序列化

- **解决传输时 可能出现的沾包拆包问题**

![1651044110072](C:\Users\asus\AppData\Roaming\Typora\typora-user-images\1651044110072.png)
![1651044110072](images/1651044110072.png)



Expand Down Expand Up @@ -666,11 +666,11 @@ import java.util.Scanner;

- 不多说直接追源码

![1651067040657](C:\Users\asus\AppData\Roaming\Typora\typora-user-images\1651067040657.png)
![1651067040657](images/1651067040657.png)

![1651067081930](C:\Users\asus\AppData\Roaming\Typora\typora-user-images\1651067081930.png)
![1651067081930](images/1651067081930.png)

![1651067198890](C:\Users\asus\AppData\Roaming\Typora\typora-user-images\1651067198890.png)
![1651067198890](images/1651067198890.png)

第一段的意思是,创建一个从指定的InputStream读取的ObjectInputStream,序列化的流的头是从这个Stream中读取并验证的。此构造方法会一直阻塞直到相应的ObjectOutputStream已经写入并刷新头。

Expand Down

0 comments on commit 08a9524

Please sign in to comment.