-
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
-
The tool is also used for byte code inserted pile, hansel use most of the code G...
该工具也是用于字节码插桩,hansel中使用了大部分的gretel代码-The tool is also used for byte code inserted pile, hansel use most of the code Gretel
- 2022-05-17 04:07:03下载
- 积分:1
-
DB日期编辑控件继承ZsDateTimeText,实现与数据集绑定,这是标准jbuilder没提供的,支持星期,也支持指定格式录入和合法性校验。...
DB日期编辑控件继承ZsDateTimeText,实现与数据集绑定,这是标准jbuilder没提供的,支持星期,也支持指定格式录入和合法性校验。-DB Date Edit Control ZsDateTimeText succession, with a bundled data sets, which is the standard JBuilder did not provide the support weeks, and also supports a prescribed format input and legitimacy check.
- 2022-01-26 01:53:57下载
- 积分:1
-
一个基于Java语言开发的计算器的源代码
一个基于Java语言开发的计算器的源代码-The development of a language based on Java source code for the calculator
- 2022-01-22 07:40:34下载
- 积分:1
-
分页类,包括中文和英文及其他语言种类,便于二次开发及商业开发,...
分页类,包括中文和英文及其他语言种类,便于二次开发及商业开发,-Page categories, including Chinese and English and other languages for the secondary development and commercial development,
- 2022-04-19 05:11:39下载
- 积分:1
-
这是一个Media_Player程序,,是用JAVA开发的,提大家学习
这是一个Media_Player程序,,是用JAVA开发的,提大家学习-Media_Player This is a procedure that is used in Java development, we provide learning
- 2022-06-12 03:52:47下载
- 积分:1
-
WAPPUSH的JAVA代码,已经通过了CMPP的测试,多种手机可以支持.
WAPPUSH的JAVA代码,已经通过了CMPP的测试,多种手机可以支持.-WAPPUSH the JAVA code, CMPP has passed the test, a wide range of mobile phones can be supported.
- 2022-01-25 23:55:17下载
- 积分:1
-
深入浅出Java堆的管理
深入浅出Java堆的管理--垃圾回收-simple Java heap management-- the garbage collector
- 2022-08-24 13:45:28下载
- 积分:1
-
struts+hibernate+spring框架经典实例
struts+hibernate+spring框架经典实例-struts+spring+hibernate
- 2022-05-12 22:27:34下载
- 积分:1
-
本程序所需的jmf到sun官方网站下载,先要进行设备注册才能运行,详情请见readme.txt...
本程序所需的jmf到sun官方网站下载,先要进行设备注册才能运行,详情请见readme.txt-the procedures necessary to sun jmf official website for them registered to run equipment, See details readme.txt
- 2023-01-02 19:25:04下载
- 积分:1