这样就提供了在敲打创建模式下进行简单测试设置的功能,并为敲打序列的监听模式提供了一个快速重置选项。
This provides for a simple testing setup during the knock creation mode, and a fast resetting option for knock sequence listen mode.
利用这些子程序,主程序的逻辑允许用户创建敲打序列,或在守护模式下监听敲打序列并执行命令。
With the subroutines in place, the main program logic allows the user to create a knock sequence, or runs in daemon mode to listen for knocks and execute commands.
清单2是一个示例,显示如何在调试模式下启动VM并监听端口8765的套接字连接。
Listing 2 shows an example of how to launch a VM in debug mode and listen for a socket connection at port 8765.
应用推荐