使用TCP和UDP分别实现Client和Server传输文件
TCP实现Client:
public class ClientDemo {
public static void main(String[] args) throws UnknownHostException, IOException {
Socket s=new Socket(InetAddress.getByName(“localhost”), 8888);
OutputStream os=...
原创
2019-01-01 23:28:20 ·
1697 阅读 ·
0 评论