Skip to content
/ reactor Public
forked from chuondev/reactor

NIO 编程模型 - Reactor,各版本实现

Notifications You must be signed in to change notification settings

HScarb/reactor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactor Java Implementation

依据 Doug Lea 的 Scalable IO in Java 基于 NIO 实现的 Reactor 模式的大小写转换服务器。模仿 Netty 实现主从 Reactor 模型。

原文地址:https://hscarb.github.io/java/20240827-reactor-java.html

Getting started

Compiling

javac -encoding utf-8 com\cnscarb\reactor\bio\*.java
javac -encoding utf-8 com\cnscarb\reactor\reactor\*.java
javac -encoding utf-8 com\cnscarb\reactor\*.java

Running

java com.cnscarb.reactor.Main

Testing

使用 telnet 命令进行测试,在 windows 下记得打开回显(ctrl+] -> set localecho -> Enter)

D:\>telnet 127.0.0.1 8080
reactor> Hello World!
HELLO WORLD!
reactor>

Connection to host lost.
D:\>

About

NIO 编程模型 - Reactor,各版本实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%