随笔分类 -  网络编程

tomcat8优化积累/http协议对比
摘要:https://zhuanlan.zhihu.com/p/73620440 https://events.static.linuxfound.org/sites/events/files/slides/TomcatConnectorsEU_0.pdf https://mp.weixin.qq.com 阅读全文

posted @ 2019-12-12 08:31 CreatorKou 阅读(183) 评论(0) 推荐(0)

netty优化学习积累+++++++
摘要:一、 c/s-Handler在需要发送消息时,不一定必须调用writeandFlush(),如果对于一些零碎的消息都writeAndFlush(),那么多次频繁的调用对应多次的syscall系统调用,如何减少系统调用提高效率? write()函数,对于多次要发送的零碎的消息都采用write()函数, 阅读全文

posted @ 2019-10-14 20:12 CreatorKou 阅读(275) 评论(0) 推荐(0)

aio的缺陷和问题(linux aio, java aio(nio.2)
摘要:https://lwn.net/Articles/671649/ https://stackoverflow.com/questions/20973754/linux-aio-poor-scaling 高性能网络服务器编程:为什么linux下epoll是最好,Netty要比NIO.2好? http: 阅读全文

posted @ 2019-10-14 10:48 CreatorKou 阅读(751) 评论(0) 推荐(0)

scatter/gather IO原理
摘要:https://stackoverflow.com/questions/10520182/linux-when-to-use-scatter-gather-io-readv-writev-vs-a-large-buffer-with-frea The main convenience offered 阅读全文

posted @ 2019-10-10 19:50 CreatorKou 阅读(360) 评论(1) 推荐(0)

Http-Netty-Rpc-Service系统
摘要:20190823rpc系统修改日志https://github.com/KouReal/Rpc-Netty-Registry/tree/master将httpserver模块的httptask去掉,直接在httpserverhandler调用rpcproxy的call的rpcclient的invok 阅读全文

posted @ 2019-08-23 19:53 CreatorKou 阅读(320) 评论(0) 推荐(0)

操作系统角度理解bio nio aio
摘要:https://www.jianshu.com/p/ef418ccf2f7d 阅读全文

posted @ 2019-08-13 14:30 CreatorKou 阅读(170) 评论(0) 推荐(0)

c struct pointer cast and object oriented
摘要:https://stackoverflow.com/questions/3766229/casting-one-struct-pointer-to-another-c Casting one struct pointer to another - C Ask Question Casting one 阅读全文

posted @ 2018-10-24 00:24 CreatorKou 阅读(248) 评论(0) 推荐(0)

c struct pointer cast and "object oriented"
摘要:https://stackoverflow.com/questions/3766229/casting-one-struct-pointer-to-another-c Casting one struct pointer to another - C Ask Question Casting one 阅读全文

posted @ 2018-10-24 00:23 CreatorKou 阅读(221) 评论(0) 推荐(0)

Myfox开发笔记
摘要:1.一个头疼的问题,客户端怎么组织随时发送消息,在ManWeb.connect()中通过Sendmessage.ch = f.channel();拿到channel然后保存到另一个类里面就好了,channel.writeandflush可以写消息。(参见channel官方文档) 阅读全文

posted @ 2018-06-16 23:42 CreatorKou 阅读(663) 评论(0) 推荐(0)

netty:本地client无法连接远程server(阿里云)
摘要:需要在阿里云控制台,设置防火墙,添加规则:全部TCP+UDP,端口范围:1/65535 阅读全文

posted @ 2018-06-14 10:11 CreatorKou 阅读(482) 评论(0) 推荐(0)

服务器开发需要学习的基础工具
摘要:因为服务器在远程,无法使用ide,only command line 需要在本地编代码,然后通过git传到服务器,服务器使用makefile编译,一些批处理需要写成shell脚本; 所以,需要学习git,makefile,编译命令的各种选项和用法,shell脚本这些基本工具。 阅读全文

posted @ 2018-06-14 00:20 CreatorKou 阅读(375) 评论(0) 推荐(0)

java makefile学习实践(编译的javac命令写在makefile中,运行命令java写在shell脚本中)
摘要:学习makefile教程,ubuntu中文网 1.写一个简单的java项目,不需要外部jar,用的简单的 hellocat Hellocat.java Cat.java makefile 执行的时候还得输入java Hellocat,这个项目比较小无所谓,如果遇到大的项目,各种package,需要调 阅读全文

posted @ 2018-06-14 00:12 CreatorKou 阅读(782) 评论(0) 推荐(0)

ssh远程登录和git远程仓库传输
摘要:学习了廖的git教程,网上找了一些ssh的知识,然后开始实践: 工具:阿里云服务器ubuntu16.04LTS(安装git) 本地主机,ubuntu16.04 LTS(git,ssh) 步骤: 1.阿里云官网:配置阿里云服务器的远程连接信息: 在阿里云控制台,远程连接,客户端使用账号密码连接,设置密 阅读全文

posted @ 2018-06-13 23:51 CreatorKou 阅读(224) 评论(0) 推荐(0)

asio的前摄器模式
摘要:设计模式-前摄器模式(Proactor 先来一段关于前摄器模式的官话:前摄器模式支持多个事件处理器的多路分离和分派,这些处理器由异步事件的完成来触发。通过集成完成事件(completion event)的多路分离和相应的事件处理器的分派,该模式简化了异步应用的开发。 简单点说,前摄器的实现多亏了多个事件处理器将事件和处理分离开,和处理方式的分派。而这些事件处理器的的触发方式是当被异步事... 阅读全文

posted @ 2018-04-17 15:48 CreatorKou 阅读(155) 评论(0) 推荐(0)

blocking IO, non-blocking IO, asychronous IO, sychronous IO
摘要:https://blog.csdn.net/historyasamirror/article/details/5778378 言归正传。 同步(synchronous) IO和异步(asynchronous) IO,阻塞(blocking) IO和非阻塞(non-blocking)IO分别是什么,到 阅读全文

posted @ 2018-04-12 22:21 CreatorKou 阅读(221) 评论(0) 推荐(0)

导航