当前位置:网站首页>104. simple chat room 7: use socket to transfer objects
104. simple chat room 7: use socket to transfer objects
2022-06-23 05:34:00 【Jasonakeke】
List of articles
Title Description
Topic realization : When using network programming , Need to pass through Socket Transfer object .
Their thinking
Create a class :Employee, Implement serialization
Employee Class contains two properties and their corresponding get() and set() Method
Create a server class :ServerSocketFrame, Inherit JFrame class
Write a getServer() Method , Instantiation Socket object , Enable 9527 When the port of the service .
Create an input stream object , Used to receive client information .
Let me define one more getClientInfo() Method , Used to receive information sent by the client .
Add an event to the text box : Realize sending weighing information to the client .
Create a client class :ClientSocketFrame, Inherit JFrame class .
Write a connect() Method , Instantiation Socket object , Connect to the local service 9527 Port services .
Let me define one more getClientInfo() Method , Used to receive information sent by the server .
Technical focus :
stay Java Use in Socket When passing objects , The object must be serialized , stay Java To realize Serializable The class of the interface , The created object is the serialized object , Can pass Sock
边栏推荐
- Design and implementation of spark offline development framework
- Get bat command results in bat
- Today's sleep quality record 80 points
- konva 系列教程 1:konva 是什么?
- MCS:连续随机变量——Chi-Square分布
- APP自动化测试-Appium进阶
- STM32 clock tree misconfiguration causes boot to enter hard interrupt
- 抽奖 ddd 代码
- How to conduct exploratory data analysis
- 物联网开源开发平台 Shifu 开放内测!第一版技术文档发布
猜你喜欢

网上有真实的兼职吗?大学生怎么找暑期兼职?

Seata四大模式之XA模式详解及代码实现

STC 32-bit 8051 MCU development example tutorial I development environment construction

数学分析_笔记_第1章:集合与映射

Penetration test basis | attached test points and test scenarios
![[microservices | Nacos] list of issues related to the Nacos version](/img/13/d25cbe38d1712f7166f7b5eb27942c.png)
[microservices | Nacos] list of issues related to the Nacos version

Win软件 - (Net-Framework)已处理证书链,但是在不受信任提供程序信任的根证书中终止

Introduction to MySQL (I) grammar

Win11不能录制音频怎么办?Win11无法录入声音的解决方法

Go language -panic and recover
随机推荐
MCS:连续随机变量——LogNormal分布
[leetcode] longest increasing subsequence problem and its application
read 文件一个字节实际会发生多大的磁盘IO?
Complete the primary school project in 3 days, and teach you to complete the weather broadcast system hand in hand!
第十六届东北地区大学生程序设计竞赛(热身赛)B-String Value(字符串dp)
pkav简单爆破
小时候 觉得爸爸就是天 无所不能~
低成本5W无线充电器方案FS68001B简便充电芯片
左侧固定,右侧自适应 三种实现办法(Flex,float + BFC ,float-margin-left)
奇门遁甲辅助决策软件
Current situation and development of containerization technology under the cloud native trend
STC 32比特8051單片機開發實例教程 一 開發環境搭建
Master shell, one article is enough!
Cloud native architecture (04) -cncf
Spark 离线开发框架设计与实现
How much disk IO will actually occur for a byte of the read file?
抽奖 ddd 代码
H5 适配全面屏
When I was young, I thought my father was omnipotent
konva 系列教程 1:konva 是什么?