Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
要通过网络(WiFi、电缆等)在两个设备之间建立连接,您需要编写 2 个软件:
1) 服务器:等待连接
2) 客户端:启动与服务器的连接
一旦客户端发起 TCP 连接,设备就会连接起来,您可以在它们之间发送数据和消息。
这里: Java Sockets
这里有一个完整的分步教程,介绍如何编写一个聊天应用程序:客户端/服务器对
To establish a connection between two devices over a network (WiFi, cable, etc...) you need to write 2 pieces of software:
1) A server: which waits for connections
2) A client: which initiates a connection to the server
Once the client initiates a TCP connection then the devices are connected and you can send data and messages between them.
Here: Java Sockets
Here's a COMPLETE step by step tutorial on how to write a chat application: Client/Server Pair
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
要通过网络(WiFi、电缆等)在两个设备之间建立连接,您需要编写 2 个软件:
1) 服务器:等待连接
2) 客户端:启动与服务器的连接
一旦客户端发起 TCP 连接,设备就会连接起来,您可以在它们之间发送数据和消息。
这里: Java Sockets
这里有一个完整的分步教程,介绍如何编写一个聊天应用程序:客户端/服务器对
To establish a connection between two devices over a network (WiFi, cable, etc...) you need to write 2 pieces of software:
1) A server: which waits for connections
2) A client: which initiates a connection to the server
Once the client initiates a TCP connection then the devices are connected and you can send data and messages between them.
Here: Java Sockets
Here's a COMPLETE step by step tutorial on how to write a chat application: Client/Server Pair