TCP网络通信编程4-文件传输


TCP网络通信编程-文件传输package org.example.socket;import java.io.*;import java.net.ServerSocket;import java.net.Socket;public class TcpServerCopy { public s

TCP网络通信编程3-字符流


TCP字符流编程代码package org.example.socket;import java.io.*;import java.net.ServerSocket;import java.net.Socket;public class SocketTcp03Server { public s

Java_URL类

笔记  Java 

URL类例子package org.example;/** https://www.runoob.com/java/java-url-processing.html* */import java.net.MalformedURLException;import java.net.URL;/** pr

TCP网络通信编程1-字节流


SockeTcp01Client.javapackage org.example.socket;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.net.Inet

Java_Socket编程

笔记  Java 

SocketSocket有两种编程方式tcp编程udp编程

TCP网络通信编程2-字节流


TCP网络通信编程2SocketTcp02Server.javapackage org.example.socket;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import ja