-
简单的Java聊天室系统
C/S实训开发模拟
运用Java程序编程聊天室,实现简单的聊天功能。它是以图形界面,线程,数据流等技术的综合应用。其界面主要采用了java.awt包,java.swing包以及java.util包等。程序实现了聊天室的基本功能,其中有:
1. 启动服务器;
2. 进入客户端界面;
3. 登录聊天室;
4. 发送信息(发送按钮);
5. 关闭服务器(关闭按钮)。
要实现用户与服务器相连接,就要用到Java网络编程的知识。当客户需要通信时,它们可以通过使用socket类建立套接字对象并连接在一起,当客户端对象建立后,客户端socket对象可以使用方法getInputStream()获得一个输入流,这个出入流的源和服务器的一个输出流的目的地刚好相同,所以,客户端用输入流可以读取服务器写入到输出流中的数据,客户端Socket对象使用方法getOutputStream()获得一个输出流,这个输出流的目的地和服务器端的一个输入流的源刚好相同,因此服务器用输入流可以读取客户写入到输出流中的数据。为了能使客户成功地连接到服务器,服务器必须建立一个ServerSocket对象,该对象通过将客户端的套接字对象和服务器端的一个套接字对象连接起来,从而达到连接的目的。当服务器的ServerSocket
- 2022-03-23 13:31:03下载
- 积分:1
-
Point to point net program
点对点网络聊天程序之服务器端!!!适合于初学者-Point to point net program
- 2022-03-12 04:11:25下载
- 积分:1
-
解析字符串,按照运算表达式来计算出最终结果值
解析字符串,按照运算表达式来计算出最终结果值-Parsing a string, in accordance with the operator expression to calculate the final results of the value of
- 2023-03-03 01:50:03下载
- 积分:1
-
使用Mapi访问微软的邮件服务器Exchange
使用马皮访问微软的邮件服务器交换,例如如何使用MAPI访问微软的Exchange邮件服务器
- 2022-02-04 01:23:25下载
- 积分:1
-
sqlitedll的源代码,用于在程序中直接调用
sqlitedll的源代码,用于在程序中直接调用-sqlitedll source code, can be called directly from program.
- 2022-08-24 00:10:38下载
- 积分:1
-
检查inband tone的算法,原始的pcm包中检查dtmf包
检查inband tone的算法,原始的pcm包中检查dtmf包-Inband tone to check the algorithm, the original package pcm DTMF packet inspection
- 2022-04-11 17:46:25下载
- 积分:1
-
GSM模块的源
GSM模块源程序-GSM module source
- 2022-05-16 01:15:13下载
- 积分:1
-
a DLL using information obtained CPU code, very professional, not only can the C...
一个利用DLL实现获得CPU信息的代码,十分专业,不但可以获得CPU的速度、型号等,而且可以获得CPU的缓存大小、流水线数等等30多项CPU的特性,而且,带了DLL的VC源程序-a DLL using information obtained CPU code, very professional, not only can the CPU speed, models, but the available CPU cache size, number, etc. Line 30 of the characteristics of the CPU, but with a VC source DLL
- 2022-07-03 01:43:55下载
- 积分:1
-
一个简单的控制台上的学生管理器。实现了插入,删除,保存等操作...
一个简单的控制台上的学生管理器。实现了插入,删除,保存等操作-A simple console student manager. Realize the insert, delete, save, such as operation
- 2022-01-26 07:45:29下载
- 积分:1
-
lyrics show Editor V1.2 version, the LRC can edit documents with source code and...
歌词秀编辑器V1.2版,可以编辑LRC文件,带有源代码和使用说明。-lyrics show Editor V1.2 version, the LRC can edit documents with source code and use.
- 2022-01-28 20:56:06下载
- 积分:1