-
err
客户通过Socket(InetAddress,port)建立与服务器的连接。服务器与客户都通过构造BufferedReader,PrintWriter来建立输入输出流,然后双方通过该输入输出流来相互传递信息,一旦收到客户方的连接请求,服务器accept()方法返回一个新建的Socket对象。客户端然后向服务器发送消息,比如注册,登录,查找好友等,服务器收到来自客户的请求后,针对不同的消息处理请求, 虽然UDP不可靠但是对于icq可靠性并不太重要,而且UDP快速,所以客户间发送信息通过UDP。用户登录时通过类DatagramPacket和DatagramSocket创建UDP包括其本地接受端口以及发送端口,默认端口为5000和5001,通过取得的好友的IP地址来向好友发送消息(send(DatagramPacket)和接受消息(receive(DatagramPacket))。当用户通过UDP收到消息后,可以通过DatagramPacket的方法InetAddress getAddress()得到对方的ip地址,通过对好友列表比较以判断是谁并提示用户收到某某的消息,然后用户选择该用户查看消息,如果好友列表没有该人就显示收到陌生人的消息。用户可以按陌生人按钮查看消息。
-err
- 2022-01-23 10:11:51下载
- 积分:1
-
成绩管理系统
成绩管理系统---部分二:
使用了struts,hibernate,spring等技术,内容相当详细,几个朋友几个月的毕业项目。
(因为23MB上传多次均失败,故分成3部分上传)-Performance management system- part II: using struts, hibernate, spring, such as technology, content in considerable detail, a few friends a few months of graduation projects. (Because many times have 23MB upload failure, it is divided into 3 parts uploaded)
- 2022-01-22 04:26:18下载
- 积分:1
-
use eclipse the source development. Statistics can be a folder with a particular...
本源码使用eclipse开发。可以统计某个文件夹下具有某一后缀名所有文件的行数。可以用来统计源代码行数来了解自己的开发规模-use eclipse the source development. Statistics can be a folder with a particular suffix all in the name a few. Statistics can be used to a few source code to understand their development scale
- 2022-04-15 15:05:11下载
- 积分:1
-
The use of reflective properties of the assignment mechanism, mainly used for th...
利用反射机制对属性赋值,主要用于对javabean的自动赋值-The use of reflective properties of the assignment mechanism, mainly used for the automatic assignment javabean
- 2022-05-31 06:08:01下载
- 积分:1
-
java ppt of framework
关于java的avlon 框架的ppt讲义
java ppt of framework
关于java的avlon 框架的ppt讲义-java ppt of framework the ppt teaching materials about avlon architecture of java
- 2022-01-25 23:18:37下载
- 积分:1
-
用JAVA小程序,获得系统当前时间,也许对你有帮助
用JAVA小程序,获得系统当前时间,也许对你有帮助-Using JAVA applets, access to the system current time, maybe you have to help
- 2022-09-10 06:00:03下载
- 积分:1
-
该系统是一个基于p2p的即时聊天系统,使用java,便于移植,
该系统是一个基于p2p的即时聊天系统,使用java,便于移植,-The system is based on a real-time chat p2p systems, the use of java, ease transplantation,
- 2023-08-28 14:35:06下载
- 积分:1
-
Guo Ke
郭克华视频教程,第一课,环境的安装和配置
非常直观明了,适合初学者学习。-Guo Ke-hua video tutorials, the first lesson, and the environment is very intuitive to understand installation and configuration, suitable for beginners to learn.
- 2023-03-06 07:10:04下载
- 积分:1
-
创建二进制树的java程序
创建二叉树Java程序
- 2022-05-20 15:23:15下载
- 积分:1
-
酷毙的在线时钟脚本
酷毙的在线时钟脚本--真正的“斯沃琪”, 为什么不在你的页面中加上一个呢?-cool style clock online script-- the real "brands," Why not you add a page?
- 2022-03-13 18:45:13下载
- 积分:1