-
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
-
java读取的数据在Excel表格,和一包JDBC的功能等价
javaexcel读取表单中的数据,与jdbc功能相当于一个包
- 2022-03-24 21:50:11下载
- 积分:1
-
this is time table generation project
this time table generation project-this is time table generation project
- 2023-03-28 08:10:03下载
- 积分:1
-
java me美女过街游戏,一小美女走过街道,路上有车不时通过,不能让车撞到...
java me美女过街游戏,一小美女走过街道,路上有车不时通过,不能让车撞到-java me beautiful game across the street, a small beauty through the streets, cars on the road from time to time has passed, so that cars should not hit
- 2022-07-11 07:42:42下载
- 积分:1
-
MJFS 可以在任何有 Java 支持的系统平台上运行。为了您使用方便,本软件已经自带 "JRE 1.4.2" Java 运行环境,您无需再安装。
MJFS...
MJFS 可以在任何有 Java 支持的系统平台上运行。为了您使用方便,本软件已经自带 "JRE 1.4.2" Java 运行环境,您无需再安装。
MJFS支持从指定数据文件或直接从数据库中装载 FTP 用户数据。目前支持 Oracle 和 Mysql 数据库。-MJFS in any Java-supported operating system platform. For your convenience, the software has been bringing their "JRE 1.4.2" Java runtime environment, you do not need to install. MJFS support from the designated data files or directly from the database loading FTP user data. Currently supports Oracle and Mysql database.
- 2022-01-26 07:48:13下载
- 积分:1
-
Java Network Programming several source Zhi No.1
Java网络编程的若干源码之No.1-Java Network Programming several source Zhi No.1
- 2022-01-29 01:54:34下载
- 积分:1
-
对java从基础到高级的全面的介绍,还有大量实力可供参考
对java从基础到高级的全面的介绍,还有大量实力可供参考- To java from foundation to high-level comprehensive
introduction, but also has the massive strengths to be possible to
supply to refer
- 2022-11-19 14:55:03下载
- 积分:1
-
给出了一个使用RUL类响应邮件请求的实例,可以节省编程的时间...
给出了一个使用RUL类响应邮件请求的实例,可以节省编程的时间-Gives a category in response to the use of e-mail request RUL example, you can save programming time
- 2023-01-22 12:20:03下载
- 积分:1
-
Hibernate the classical examples, contains all the objects corresponding to the...
Hibernate的精典实例,包含了所有对象对应关系的处理,包括一对一、一对多、多对多。简单掌握Hibernate最烦人的关系处理。-Hibernate the classical examples, contains all the objects corresponding to the relationship between treatment, including one-on-one, one-to-many, many-to-many. Simple to master the most annoying relationship Hibernate treatment.
- 2022-12-20 22:10:03下载
- 积分:1
-
Book example, a java calculator capable of showing and preserving the sequence o...
书上的例子,能显示和保存计算过程的java计算器。-Book example, a java calculator capable of showing and preserving the sequence of calculations.
- 2023-06-07 16:40:03下载
- 积分:1