当前位置:网站首页>106. simple chat room 9: use socket to transfer audio
106. simple chat room 9: use socket to transfer audio
2022-06-25 08:48:00 【Jasonakeke】
List of articles
Title Description
Topic realization : When using network programming , Need to pass through Socket Deliver audio .
Their thinking
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 audio files 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 audio files sent by the server .
Technical focus :
DataInputStream Class read() Methods and DataOutputStream Class from DataOutput Class inheritance write() Method to read and write audio files , Different from the previous question, this question uses “ preservation ” Dialog box , Save the received audio file to the host of the receiver .
Code details
边栏推荐
- How to calculate the distance between texts: WMD
- View all listening events on the current page by browser
- 现在网上开通股票账号安全吗?
- openid是什么意思?token是什么意思?
- Paper:Generating Hierarchical Explanations on Text Classification via Feature Interaction Detection
- UEFI: repair efi/gpt bootloader
- Getting to know the generation confrontation network (11) -- using pytoch to build wgan to generate handwritten digits
- 从别人库里拷贝的游戏如何再自己的库里显示
- 关掉一个线程
- 对常用I/O模型进行比较说明
猜你喜欢
atguigu----17-生命周期
Software engineering review questions
Unity--configurable joint -- a simple tutorial to get you started with configurable joints
cazy长安战役八卦迷宫
Exchange:管理日历权限
linux中的mysql有10061错误怎么解决
在二叉树(搜索树)中找到两个节点的最近公共祖先(剑指offer)
如何成为一名软件测试高手? 月薪3K到17K,我做了什么?
wav文件(波形文件)格式分析与详解
Day 5 script and UI System
随机推荐
openid是什么意思?token是什么意思?
City Chain technology platform, really Realizing value Internet reconstruction!
(翻译)采用字母间距提高全大写文本可读性的方式
某视频网站m3u8非感知加密分析
C language "Recursion Series": recursively realizing the n-th power of X
Exchange:管理日历权限
LVS-DR模式多网段案例
What is the difference between TP5 and tp6?
Paper:Generating Hierarchical Explanations on Text Classification via Feature Interaction Detection
一、单个神经元网络构建
城鏈科技平臺,正在實現真正意義上的價值互聯網重構!
二、训练fashion_mnist数据集
RMB 3000 | record "tbtools" video, make a friend and get a cash prize!
配置、软件配置项、软件配置管理项辨析
atguigu----17-生命周期
EasyPlayer流媒体播放器播放HLS视频,起播速度慢的技术优化
Software engineering review questions
C#程序终止问题CLR20R3解决方法
对常用I/O模型进行比较说明
To achieve good software testing results, it is a prerequisite to build a good testing environment