文件名称:tcp-nio-
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:6.68kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
tcp nio 服务端、客户端例子--参考《分布式Java应用:基础与实践》
参考《分布式java应用》tcp nio 服务端、客户端例子, 在基础主要做了以下调整:
1. 信息长度由定长(ByteBuffer长度)修正为可变长(即不再收长度限制)
2. 特殊错误处理:read Exception,opposite close Exception,select timeout Exception(网络超时)。
read Exception 与 opposite close Exception 的处理, 用于解决发现异常后造成程序的 while死循环。
select timeout Exception的处理, 用于对网络超时的支持
-the tcp the nio service side, client examples- refer to distributed Java applications: Basis and Practice of " reference" distributed java applications " tcp nio services, client, example, is based primarily on the following adjustments: 1. message length fixed-length (length of the ByteBuffer) correction is a variable length (ie, no longer received length limit) 2. special error handling: read the Exception, opposite the close the Exception, select timeout Exception (network timeout). the read the Exception, and opposite the close Exception handling is used to resolve discovered anomalies resulting from the program while infinite loop. select timeout of Exception handling, for the support of the network timeout
参考《分布式java应用》tcp nio 服务端、客户端例子, 在基础主要做了以下调整:
1. 信息长度由定长(ByteBuffer长度)修正为可变长(即不再收长度限制)
2. 特殊错误处理:read Exception,opposite close Exception,select timeout Exception(网络超时)。
read Exception 与 opposite close Exception 的处理, 用于解决发现异常后造成程序的 while死循环。
select timeout Exception的处理, 用于对网络超时的支持
-the tcp the nio service side, client examples- refer to distributed Java applications: Basis and Practice of " reference" distributed java applications " tcp nio services, client, example, is based primarily on the following adjustments: 1. message length fixed-length (length of the ByteBuffer) correction is a variable length (ie, no longer received length limit) 2. special error handling: read the Exception, opposite the close the Exception, select timeout Exception (network timeout). the read the Exception, and opposite the close Exception handling is used to resolve discovered anomalies resulting from the program while infinite loop. select timeout of Exception handling, for the support of the network timeout
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tcp nio 服务端、客户端例子--参考《分布式Java应用:基础与实践》.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.