Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过管道或流读取 snort 日志?像这样的东西:
snort -l | myApplication
管道使用标准输入 - “stdin”,例如来自键盘的输入。然后你可以使用相同的功能:
int x; std::cin << x; scanf("%d", &x);
等等。