Utility for check ginsfsm.c_connex.GConnex.
Send a query to two url’s alternatively.
How? send the query each 10 seconds, but set a timeout_inactivity of 5. In each disconnection the next connection will switch between the two destinations.
OnGConnex GObj.
Name | Type | Default value | Description |
---|---|---|---|
url1 | str | www.google.com | Url one to connect. |
verbose | int | 0 | Increase output verbosity. Values [0,1,2] |
url2 | str | www.twitter.com | Url two to connect. |
Input-Events:
- 'EV_TIMEOUT': Timer over.
Start the machine.
- 'EV_RX_DATA': Receiving data.
Receiving data from urls.
Output-Events:
- 'EV_START_TIMER': Start timer.