当前位置:网站首页>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
边栏推荐
- Check whether the point is within the polygon
- 对常用I/O模型进行比较说明
- Summary of hardfault problem in RTOS multithreading
- 声纹技术(七):声纹技术的未来
- 【总结】1361- package.json 与 package-lock.json 的关系
- Nips 2014 | two stream revolutionary networks for action recognition in videos reading notes
- How to solve the 10061 error of MySQL in Linux
- 城鏈科技平臺,正在實現真正意義上的價值互聯網重構!
- Fault: 0x800ccc1a error when outlook sends and receives mail
- UEFI: repair efi/gpt bootloader
猜你喜欢

GPU calculation

What do various optimizers SGD, adagrad, Adam and lbfgs do?

Cazy eight trigrams maze of Chang'an campaign

cazy长安战役八卦迷宫

四、卷积神经网络(Convolution Neural Networks)

Paper:Generating Hierarchical Explanations on Text Classification via Feature Interaction Detection

声纹技术(六):声纹技术的其他应用

C language: count the number of characters, numbers and spaces

NIPS 2014 | Two-Stream Convolutional Networks for Action Recognition in Videos 阅读笔记

How to solve the 10061 error of MySQL in Linux
随机推荐
Swiperefreshlayout+recyclerview failed to pull down troubleshooting
Openfoam: bottom layer
[MySQL] understanding and use of indexes
【总结】1361- package.json 与 package-lock.json 的关系
Is it safe to open a stock account through the account opening QR code of the account manager? Or is it safe to open an account in a securities company?
What does openid mean? What does "token" mean?
Getting to know the generation confrontation network (12) -- using pytoch to build wgan-gp to generate handwritten digits
[515. find the maximum value in each tree row]
Is it really safe to pay new debts? Is it risky
Le labyrinthe des huit diagrammes de la bataille de cazy Chang'an
Advanced technology Er, meet internship position information
故障:Outlook 收发邮件时的 0x800CCC1A 错误
Stimulsoft ultimate presents reports and dashboards
Stimulsoft Ultimate呈现报告和仪表板
atguigu----18-组件
How to calculate the distance between texts: WMD
InfluxDB时序数据库
城链科技平台,正在实现真正意义上的价值互联网重构!
City Chain technology platform, really Realizing value Internet reconstruction!
IC研发常用英文术语缩写