Welcome![Sign In][Sign Up]
Location:
Search - UDP transfer java

Search list

[JSPJava 实用系统开发指南JavaPractice

Description: ·VI· 目 录 前言 第1章 高性能聊天系统...................................................................................................1 1.1 系统需求...........................................................................................................1 1.2 架构设计...........................................................................................................2 1.2.1 Java事件模型.....................................................................................................2 1.2.2 架构设计图.......................................................................................................5 1.2.3 协议设计.........................................................................................................5 1.2.4 多线程...........................................................................................................6 1.2.5 线程池...........................................................................................................9 1.2.6 非堵塞I/O........................................................................................................11 1.3 Socket核心设计和实现...............................................................................................13 1.3.1 TCP和Reactor模式.................................................................................................14 1.3.2 UDP实现..........................................................................................................19 1.3.3 客户端实现.......................................................................................................22 1.4 Socket接口设计和实现..............................................................................................28 1.4.1 队列和对象类型..................................................................................................28 1.4.2 访问者模式定义..................................................................................................32 1.4.3 访问者模式实现..................................................................................................36 1.4.4 协议封装........................................................................................................39 1.4.5 重整Refactoring.................................................................................................41 1.5 应用接口设计和实现................................................................................................45 1.5.1 Connection API..................................................................................................46 1.5.2 ConnectionFactory API...........................................................................................49 1.5.3 TcpConnection API...............................................................................................53 1.5.4 UdpConnection API...............................................................................................54 1.6 应用层设计和实现..................................................................................................56 1.6.1 客户端聊天测试..................................................................................................56 1.6.2 服务器聊天测试..................................................................................................58 1.7 性能测试..........................................................................................................59 1.8 小结..............................................................................................................61 第2章 简单的用户注册系统..............................................................................................62 2.1 需求分析............................................................................................................62 2.2 系统设计............................................................................................................62 2.2.1 JSP/Servlet与J2EE.................................................................................................63 2.2.2 结构设计图........................................................................................................64 2.2.3 JSP/JavaBeans技术要点.............................................................................................65 2.2.4 JDBC和连接池......................................................................................................68 2.2.5 数据库设计........................................................................................................70 2.3 类的详细设计和实现..................................................................................................71 2.3.1 Facade模式........................................................................................................71 2.3.2 JDBC通用操作类....................................................................................................73 2.3.3 E-mail发送通用类..................................................................................................78 2.3.4 用户资料管理......................................................................................................79 2.3.5 密码数据操作类....................................................................................................83 2.3.6 登陆验证功能......................................................................................................85 2.4 界面编程实现........................................................................................................87 2.4.1 登陆验证页面......................................................................................................87 2.4.2 注册页面..........................................................................................................88 2.5 调试、发布和运行....................................................................................................90 2.5.1 单元测试..........................................................................................................91 2.5.2 快速配置开发环境..................................................................................................92 2.5.3 Tomcat配置和调试..................................................................................................93 2.5.4 Tomcat连接池使用..................................................................................................95 2.6 Hibernate使用.......................................................................................................99 2.7 小结................................................................................................................103 第3章 Jive论坛系统.....................................................................................................107 3.1 Jive功能需求.......................................................................................................107 3.2 Jive与设计模式.....................................................................................................108 3.2.1 设计模式.........................................................................................................109 3.2.2 ForumFactory与工厂模式...........................................................................................109 3.2.3 统一入口与单态模式...............................................................................................113 3.2.4 访问控制与代理模式...............................................................................................114 3.2.5 批量分页查询与迭代模式...........................................................................................115 3.2.6 过滤器与装饰模式.................................................................................................120 3.2.7 主题监测与观察者模式.............................................................................................124 3.3 Jive安全管理机制...................................................................................................128 3.3.1 安全验证机制.....................................................................................................129 3.3.2 用户资料管理.....................................................................................................132 3.4 Jive的缓存机制.....................................................................................................133 3.4.1 缓存原理和实现...................................................................................................133 3.4.2 缓存使用.........................................................................................................136 3.4.3 小结.............................................................................................................139 3.5 Jive的其他组件技术.................................................................................................140 3.5.1 Jive的树形结构...................................................................................................140 3.5.2 XML和JDOM........................................................................................................143 3.5.3 全文检索和Lucene.................................................................................................147 3.5.4 Jive的中文问题...................................................................................................152 3.6 Jive图形处理.......................................................................................................154 3.6.1 图片上传处理.....................................................................................................154 3.6.2 服务器端图形处理.................................................................................................157 3.7 Jive安装调试运行...................................................................................................159 3.8 小结...............................................................................................................160 第4章 网站内容管理系统.................................................................................................161 4.1 需求分析...........................................................................................................161 4.2 架构设计...........................................................................................................162 4.2.1 系统架构图.......................................................................................................163 4.2.2 MVC模式和Struts..................................................................................................164 4.2.3 DBO模式和Castor..................................................................................................167 4.2.4 Cache设计........................................................................................................172 4.3 详细设计和实现.....................................................................................................173 4.3.1 基本对象设计.....................................................................................................173 4.3.2 数据模型的实现...................................................................................................174 4.3.3 抽象工厂(Abstract Factory)模式...................................................................................175 4.3.4 生成器(Builder)模式..............................................................................................180 4.4 表现层的实现.......................................................................................................187 4.4.1 Strut相关设置....................................................................................................187 4.4.2 创建PageForm.....................................................................................................189 4.4.3 创建PageAction...................................................................................................192 4.4.4 创建page.jsp页面.................................................................................................194 4.4.5 自定义标签库.....................................................................................................196 4.4.6 创建SavePageAction...............................................................................................199 4.4.7 Tile模板.........................................................................................................201 4.4.8 创建cmsMenu.jsp..................................................................................................203 4.4.9 创建index.jsp....................................................................................................203 4.4.10 小技巧..........................................................................................................204 4.5 项目重整Refactoring................................................................................................205 4.6 调试、发布和运行...................................................................................................206 4.6.1 配置和运行.......................................................................................................206 4.6.2 Log调试信息的配置................................................................................................206 4.7 小结...............................................................................................................207 第5章 订阅信息系统.....................................................................................................209 5.1 需求分析...........................................................................................................209 5.2 架构设计...........................................................................................................209 5.2.1 Cache和Pool......................................................................................................210 5.2.2 EJB框架体系......................................................................................................211 5.2.3 架构图...........................................................................................................213 5.2.4 接口框架设计.....................................................................................................213 5.3 EJB详细设计和实现..................................................................................................214 5.3.1 业务对象建模.....................................................................................................215 5.3.2 开发环境配置.....................................................................................................216 5.3.3 CMP图形开发......................................................................................................217 5.3.4 实体Bean.........................................................................................................221 5.3.5 Facade Session Bean..............................................................................................229 5.3.6 Transfer Object模式..............................................................................................232 5.4 Web与EJB接口框架...................................................................................................233 5.4.1 框架的设计.......................................................................................................233 5.4.2 框架的实现.......................................................................................................235 5.4.3 框架的使用.......................................................................................................243 5.5 表现层的设计和实现.................................................................................................247 5.5.1 创建ActionForm...................................................................................................247 5.5.2 创建Action 类....................................................................................................248 5.5.3 创建JSP页面......................................................................................................248 5.6 调试配置和运行.....................................................................................................249 5.6.1 JBoss和MySQL的配置...............................................................................................250 5.6.2 JNDI配置.........................................................................................................251 5.6.3 部署和发布.......................................................................................................253 5.6.4 调试和测试.......................................................................................................254 5.7 小结...............................................................................................................254 第6章 用户安全管理系统.................................................................................................256 6.1 需求分析...........................................................................................................256 6.2 架构设计...........................................................................................................256 6.2.1 角色.............................................................................................................257 6.2.2 J2EE的JAAS.......................................................................................................257 6.2.3 单点登录.........................................................................................................259 6.2.4 邮件发送组件.....................................................................................................261 6.3 详细设计和实现.....................................................................................................261 6.3.1 业务对象建模.....................................................................................................261 6.3.2 数据库设计.......................................................................................................263 6.3.3 实体bean实现.....................................................................................................263 6.3.4 Session Bean实现.................................................................................................266 6.3.5 EJB容器安全配置..................................................................................................273 6.4 JMS 邮件发送组件...................................................................................................275 6.4.1 消息发送器.......................................................................................................276 6.4.2 MDB..............................................................................................................279 6.5 Web层的实现........................................................................................................282 6.5.1 用户资料管理.....................................................................................................282 6.5.2 Web容器安全配置..................................................................................................287 6.6 调试配置和运行.....................................................................................................289 6.6.1 JAAS配置.........................................................................................................290 6.6.2 邮件服务的配置...................................................................................................291 6.6.3 部署和发布.......................................................................................................292 6.7 小结...............................................................................................................292 第7章 EJB方法调用框架..................................................................................................294 7.1 框架概况...........................................................................................................294 7.1.1 远程调用技术背景.................................................................................................294 7.1.2 框架结构.........................................................................................................295 7.2 框架设计..........................................................................................................296 7.2.1 代理(Proxy)模式...............................................................................................296 7.2.2 动态代理........................................................................................................298 7.2.3 反射(Reflection)和方法调用....................................................................................300 7.2.4 HTTP协议和对象序列化............................................................................................302 7.2.5 框架设计图......................................................................................................304 7.2.6 HTTPSession和缓存机制...........................................................................................305 7.2.7 基于HTTP的安全机制..............................................................................................306 7.3 类的详细设计和实现................................................................................................309 7.3.1 基本业务对象....................................................................................................310 7.3.2 动态代理工厂....................................................................................................312 7.3.3 肥客户端/服务器架构下实现.......................................................................................315 7.3.4 Web层代理Servlet Proxy..........................................................................................322 7.3.5 浏览器/服务器架构下实现.........................................................................................324 7.3.6 核心代理Business Proxy实现......................................................................................327 7.4 框架的使用和调试..................................................................................................333 7.4.1 配置............................................................................................................333 7.4.2 浏览器/服务器架构下的应用.......................................................................................335 7.4.3 肥客户端/服务器架构下的应用.....................................................................................336 7.5 小结..............................................................................................................337 第8章 网上商店系统...................................................................................................338 8.1 系统需求和设计...................................................................................................338 8.1.1 基本业务对象...................................................................................................339 8.1.2 数据表设计.....................................................................................................340 8.2 数据操作通用框架.................................................................................................344 8.2.1 框架的提炼和设计...............................................................................................347 8.2.2 增、删、改、查框架实现.........................................................................................352 8.3 商品类别管理功能的实现...........................................................................................356 8.3.1 创建Session Bean................................................................................................357 8.3.2 EJB配置.........................................................................................................358 8.3.3 创建Category相关类实现..........................................................................................360 8.3.4 Web配置.........................................................................................................361 8.3.5 创建Category.jsp................................................................................................362 8.4 商品管理功能的实现................................................................................................364 8.4.1 创建ProductManager..............................................................................................364 8.4.2 EJB配置.........................................................................................................366 8.4.3 创建Product相关类实现...........................................................................................368 8.4.4 Web配置.........................................................................................................369 8.4.5 创建product.jsp.................................................................................................370 8.4.6 商品图片上传功能................................................................................................374 8.5 商品批量查询和多页显示............................................................................................376 8.5.1 DAO模式.........................................................................................................377 8.5.2 Strut框架下设计和实现...........................................................................................385 8.5.3 页导航条实现....................................................................................................388 8.6 购物车功能的实现..................................................................................................393 8.6.1 有状态Session Bean..............................................................................................393 8.6.2 Web功能实现.....................................................................................................396 8.7 小结..............................................................................................................399
Platform: | Size: 31514707 | Author: fengbozs@163.com | Hits:

[JSP/JavaUDP Protocol

Description: 用UDP协议进行传输,并模拟rdt协议,以实现可靠数据传输-using UDP protocol transmission, and simulation rdt agreement, in order to achieve reliable data transmission
Platform: | Size: 5120 | Author: 木头 | Hits:

[JSP/Javafiletransforms

Description: 这是一个简单的文件传送程序.用java实现. 网络接口使用udp-This is a simple file transfer procedures. Using java to achieve. Network Interface use udp
Platform: | Size: 18432 | Author: songjian | Hits:

[TCP/IP stackipmsg

Description: 1. 软件简介 - IPMsg 是一款局域网内即时通信软件, 基于 TCP/IP(UDP). 可运行于多种操作平台(Win/Mac/UNIX/Java), 并实现跨平台信息交流. - 不需要服务器支持. - 支持文件/文件夹的传送 (2.00版以上) - 通讯数据采用 RSA/Blofish 加密 (2.00版以上) - 十分小巧, 简单易用, 而且你可以完全免费使用它-1. Software- IPMsg is a LAN instant messaging software, based on TCP/IP (UDP). Can be run on multiple operating platforms (Win/Mac/UNIX/Java), and to achieve cross-platform exchange of information.- Do not need to server support.- Support for file/folder transfer (version 2.00 and above)- communication of data using RSA/Blofish encryption (version 2.00 and above)- very compact, easy-to-use, and you can be completely free to use it
Platform: | Size: 120832 | Author: 吴鸣仕 | Hits:

[JSP/JavaUDP

Description: UDP实现的可靠数据传递的小程序。 考虑了丢包的几种可能性及其处理方法。-To achieve a reliable UDP data transfer of small procedures. Some considered the possibility of packet loss and its treatment.
Platform: | Size: 7168 | Author: Will | Hits:

[JSP/Javaudp

Description: 用udp实现可靠数据传递,从本机固定位置读取一个文件,通过udp实现可靠传输-Using udp to achieve reliable data transmission, from the local fixed position to read a file, through udp to achieve reliable transmission
Platform: | Size: 2048 | Author: asd | Hits:

[JSP/JavaUDP

Description: java udp 协议 文件传输-java udp file transfer protocol
Platform: | Size: 12288 | Author: | Hits:

[TCP/IP stacktest2

Description: UDP 文件传输,这真的是Java文件传输呀-UDP file transfer, which is really Java File Transfer Yes
Platform: | Size: 2048 | Author: wanghui | Hits:

[JSP/JavaJavaIPM

Description: JAVA IP Messenge0.1版说明 作者:吴拓 E-mail:setsail_wu@163.com 完成时间:2008年8月18日 开发环境:j2sdk-1_4_2_18-windows-i586-p.exe + Eclipse3.0.1 该版本仅实现UDP消息接收、发送;未实现文件传送。 源代码发布供大家研究参考。-JAVA IP Messenge0.1 Version Description Author: Wu Extension E-mail: setsail_wu@163.com completion time: August 18, 2008 development environment: j2sdk-1_4_2_18-windows-i586-p.exe+ Eclipse3.0.1 the versions realize only receive UDP messages, send not realize file transfer. Source code release for the U.S. study.
Platform: | Size: 32768 | Author: 吴拓 | Hits:

[JSP/Java20071115585

Description: 用java实现飞鸽传书的源码文件,通过udp协议,参考该源码可以解决文件传输的高可靠要求。-Using java to achieve Dove Chuanshu source documents, through udp agreement can be resolved with reference to the source of highly reliable file transfer request.
Platform: | Size: 183296 | Author: 吴生 | Hits:

[Internet-NetworkUDP

Description: java轻松演示计算机网络客户端与服务端数据传送——UDP-easy demonstration of the computer network java client and server data transfer- UDP
Platform: | Size: 1024 | Author: gongchang | Hits:

[JSP/JavaChineseChess

Description: 中国象棋。网络对战。采用Net Beans IDE开发。寻找主机采用IP多点传送。可以聊天。使用UDP进行数据传送。Java Socket编程。-Chinese chess. Network war. Developed using Net Beans IDE. To find the host using IP multicast. Can chat. The use of UDP for data transfer. Java Socket Programming.
Platform: | Size: 1137664 | Author: kprog | Hits:

[JSP/JavaTCPUDP

Description: 基于TCP,UDP协议的client,server代码,及增加了文件传输判断的加强版-Based on TCP, UDP protocol client, server code, and to increase the file transfer to determine the enhanced version of
Platform: | Size: 3072 | Author: alick | Hits:

[JSP/JavaDesktop

Description: file transfer using udp injava
Platform: | Size: 4096 | Author: bhsabdk | Hits:

[JSP/JavaUDP

Description: 基于UDP协议的简单数据传输,三个.java 文件-Simple UDP based data transfer protocol
Platform: | Size: 1024 | Author: 李钰 | Hits:

[JSP/Javaudp-reliable-data-transmission

Description: UDP实现可靠数据传输。使用GBN算法,实现了:1.随即丢包(随机数产生器Math.random()) 2.丢包后遇冗余ack重传 3.超时重传 (DatagramSocket和Socket都有成员函数setSoTimeout(delay),通过捕获超时时抛出的IO异常来实现超时重传)-Reliable UDP data transfer. GBN algorithm used to realize: 1. Then packet loss (random number generator Math.random ()) 2. After the case of redundant packet loss retransmission ack 3. Retransmission timeout (DatagramSocket and Socket has a member function setSoTimeout ( delay), by capturing the IO exception thrown during timeout to achieve retransmission timeout)
Platform: | Size: 10240 | Author: nazali | Hits:

[JSP/JavaUDPChat

Description: Java做的UDP文件传输源代码,设计Swing Socket 还有UDP协议-Java to do the UDP file transfer source code, design Swing Socket UDP protocol also
Platform: | Size: 34816 | Author: 王艳 | Hits:

[JSP/JavaFileTransferProtocol

Description: File Transfer Protocol implements in java from University of Sã o Paulo - BR for UDP Protocol Security Transfer-File Transfer Protocol implements in java from University of Sã o Paulo - BR for UDP Protocol Security Transfer...
Platform: | Size: 7168 | Author: Cardoso | Hits:

[Internet-NetworkchatRoom

Description: 聊天室,UDP实现,多用户聊天界面,实现简单登录登出、文件传输、文件夹传输等相关的一些功能-Chat rooms, UDP implementation, multi-user chat interface, simple log log, file transfer, folder transfers, and other related features
Platform: | Size: 536576 | Author: frank | Hits:

[Internet-NetworkUDP-file-transfer

Description: UDP 文件传输,实现大型文件的多传输功能,利用套接字和端口号进行传输-UDP file transfer, implementation of large file transfer capabilities and more, using the socket and port number for transmission
Platform: | Size: 1024 | Author: liulin | Hits:
« 12 3 »

CodeBus www.codebus.net