-
简单的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
-
服务器端的TCP功能
实现服务器端的TCP功能。可正常收发。采用Visual C++6.0编写,可正常运行。如果你是最新的版本,或是高于该版本的VS,都可以独立编译,正常跑通。
- 2022-04-23 10:27:06下载
- 积分:1
-
虽然这dvbs2编译器的短帧、普通帧细节只是短暂的
hihi this dvbs2 enoder short frame and normal frame deatils just brief of it
- 2022-04-29 00:17:20下载
- 积分:1
-
windows 内存共享 sharememey sharememey sharememey sharememey sharememey sharememey s...
windows 内存共享 sharememey sharememey sharememey sharememey sharememey sharememey sharememey -windows 内存共享 sharememey sharememey sharememey sharememey sharememey sharememey sharememey sharememey sharememey sharememey sharememey sharememey sharememey
- 2023-05-21 03:10:04下载
- 积分:1
-
Datasheet for the LM
Datasheet for the LM-JK53-22NTR LCD Display
Full pin-out
- 2022-06-16 02:21:29下载
- 积分:1
-
下载DOS版和windows版的迷宫游戏全部代码
下载DOS版和windows版的迷宫游戏全部代码 -Download all of the codes for maze games in
DOS and Windows edition.
- 2022-06-02 05:27:40下载
- 积分:1
-
svm training is a good way to fast, source code integrity, simple and understand...
smo是训练svm的一种快速的好方法,源代码完整,简单易懂.-svm training is a good way to fast, source code integrity, simple and understandable.
- 2022-03-02 20:43:24下载
- 积分:1
-
this program is made for drawing a elastic line,i hope that anyone give me sugge...
自编的实现画橡皮筋线功能的程序,希望大家提出建议和意见。-this program is made for drawing a elastic line,i hope that anyone give me suggestion and adivce.
- 2022-04-15 21:09:07下载
- 积分:1
-
在VB里建立EXCEL,很不错的,是值得大家学习的好代码.
在VB里建立EXCEL,很不错的,是值得大家学习的好代码.-In VB to set up EXCEL, very good, everyone is worth a good code to learn.
- 2022-01-25 23:15:06下载
- 积分:1
-
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形...
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?采用分治递归-Parts mutilation given width W of a rectangular plate, rectangular plate of height restrictions. Is the need to cut out from the board, respectively, n-height hi, a width of the rectangular parts wi. Parts of the rules of cutting height direction and the direction of rectangular plates with a high degree of consistency. Asked how to make the use of cutting rectangular plate height h the smallest? Recursive use of sub-rule
- 2023-04-23 19:05:03下载
- 积分:1