python: how to send packets in multi thread and then the thread kill itself

后端 未结 7 1612
忘掉有多难
忘掉有多难 2020-12-03 12:40

I have a question. I\'d like to send a continuous streams of byte to some host for certain amount of time (let\'s say 1 minute) using python.

Here is my code so far

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 13:27

    The variable elapsed is not initialized. Set it to zero above the while loop.

提交回复
热议问题