src/org/nutz/lang/socket/Sockets.java
public static void localListenOne(int port, String line, SocketAction action) {
        Map<String, SocketAction> actions = createActions();
        actions.put(line, action);
        localListenByLine(port, actions);
    }
public static void localListenOne(int port, String line, SocketAction action) {
        Map<String, SocketAction> actions = createActions();
        actions.put(line, action);
        localListenByLine(port, actions);
    }
监听本地某一个端口，仅仅收到某一个特殊命令时，才会开始一个动作。

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