2019-07-28 10:31:56 +08:00
|
|
|
测试方式:
|
|
|
|
1) 先运行服务:./aio_echo
|
|
|
|
2) 再手工连接该服务监听端口
|
2014-01-18 13:20:58 +08:00
|
|
|
telnet 127.0.0.1 9001
|
2019-07-28 10:31:56 +08:00
|
|
|
3) 输入以下内容
|
2014-01-18 13:20:58 +08:00
|
|
|
aaaaaabbbbbbccccccddddddeeeeeeffffffgggggghhhhhhiiiiiijjjjjjkkkkkkllllllmmmmmmnnnnnnooooooppppppqqqqqqrrrrrrssssssttttttuuuuuuvvvvvvwwwwwwxxxxxxyyyyyyzzzzzz
|
2019-07-28 10:31:56 +08:00
|
|
|
4) 验证输出结果是否如下:
|
2014-01-18 13:20:58 +08:00
|
|
|
aaaaaa
|
|
|
|
bbbbbb
|
|
|
|
cccccc
|
|
|
|
dddddd
|
|
|
|
eeeeee
|
|
|
|
ffffff
|
|
|
|
gggggg
|
|
|
|
hhhhhh
|
|
|
|
iiiiii
|
|
|
|
jjjjjj
|
|
|
|
kkkkkk
|
|
|
|
llllll
|
|
|
|
mmmmmm
|
|
|
|
nnnnnn
|
|
|
|
oooooo
|
|
|
|
pppppp
|
|
|
|
qqqqqq
|
|
|
|
rrrrrr
|
|
|
|
ssssss
|
|
|
|
tttttt
|
|
|
|
uuuuuu
|
|
|
|
vvvvvv
|
|
|
|
wwwwww
|
|
|
|
xxxxxx
|
|
|
|
yyyyyy
|
|
|
|
zzzzzz
|