MCPcopy Create free account
hub / github.com/defineYIDA/LWebServer / main

Method main

src/main/java/cn/lws/server/HTTPServer.java:75–86  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

73 }
74
75 public static void main(String[] args) {
76 HTTPServer server = new HTTPServer();
77 Scanner scanner = new Scanner(System.in);//监听输入,用来终止server
78 String order = null;
79 while (scanner.hasNext()) {
80 order = scanner.next();
81 if (order.equals("EXIT")) {
82 server.close();
83 System.exit(0);
84 }
85 }
86 }
87}

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected