January 2019
Intermediate to advanced
502 pages
12h 19m
English
The idea here is similar to how we implemented the singleLineComamnd() method with the help of threads. Note that the category of the command to be executed would either be interactive or "singleLineCommand_Timeout", along with a sniffing operation. We will create a thread and delegate the sniffing task to it by attaching it to the start_sniffing method. We will also reuse the methods we created earlier. Either we invoke singleLineCommands_Timeout() as specified by (1), or general_interactive() as specified by (2):

In section (3) and (4), we check whether the sniffing process is still alive, ...
Read now
Unlock full access