摘要:
服务器端:package server;import java.io.*;import java.net.*;public class HttpServer {public static void main(String[] args) {int port;ServerSocket serverSocket;try {port = Integer.parseInt(args[0]);} catch (Exception e) {System.out.println("端口号默认为:8080");port = 8080;}try {serverSocket = new Ser 阅读全文