src/org/nutz/lang/socket/Sockets.java
public static void localListenOneAndStop(int port, String line, SocketAction action) {
        Map<String, SocketAction> actions = createActions();
        actions.put(line, action);
        actions.put("$:^(close|stop|bye|exit)$", doClose());
        localListenByLine(port, actions);
    }
public static void localListenOneAndStop(int port, String line, SocketAction action) {
        Map<String, SocketAction> actions = createActions();
        actions.put(line, action);
        actions.put("$:^(close|stop|bye|exit)$", doClose());
        localListenByLine(port, actions);
    }
监听本地某一个端口，仅仅收到某一个特殊命令时，才会开始一个动作。
<p>
并且原生的，它支持输入 "close|stop|bye|exit" 来结束本地监听

@param port
要监听的端口
@param line
命令名称
@param action
动作执行类