Public Member Functions | |
def | __init__ |
Constructor of portWaiterThread. | |
def | run |
Over written thread run function, which is triggered from parent object by calling start(). | |
Public Attributes | |
addressList | |
Wait for address list [(hostname (uint), port (uint))]. | |
timeout | |
timeout (in seconds) | |
socket | |
socked used for connecting |
A thread which is designed to check whether is possible to connect to the selected port on the selected host.
The thread simply waits in a loop and once per second it tries to connect to the selected port on the selected host. It emits two signals. The signal end indicates that the thread has ended and its parameter describes whether it timeouted or connected to the agents. The signal round is trigger at each second and indicates how long the thread was waiting.
It is used by the Main Window after hitting the Start All button. The window doesn't start the Peach process until the agents occupy the selected ports on the selected hosts.
def testport::portWaiterThread::__init__ | ( | self, | ||
addressList, | ||||
timeout = 15 | ||||
) |
Constructor of portWaiterThread.
self | The object pointer. | |
timeout | How many seconds wait before exiting with unsuccessful return value | |
addressList | Wait for address list [(hostname (uint), port (uint))] |
def testport::portWaiterThread::run | ( | self | ) |
Over written thread run function, which is triggered from parent object by calling start().
self | The object pointer. |
Wait for address list [(hostname (uint), port (uint))].
socked used for connecting
timeout (in seconds)