(String[] args)
| 12 | public final static String ProcessDaemonMMap = "Zeze.ProcessDaemon.MMap"; |
| 13 | |
| 14 | public static void main(String[] args) throws Exception { |
| 15 | var port = System.getProperties().get(ProcessDaemonPort); |
| 16 | System.out.println("Start..."); |
| 17 | if (null != port) { |
| 18 | System.out.println("subProcess peer=" + port); |
| 19 | subProcess(Integer.parseInt((String)port)); |
| 20 | } else { |
| 21 | System.out.println("DaemonProcess daemon"); |
| 22 | daemonProcess(); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | private static void subProcess(int peer) throws Exception { |
| 27 | var udp = new DatagramSocket(0, InetAddress.getLoopbackAddress()); |
nothing calls this directly
no test coverage detected