Utility for check ginsfsm.c_sock.GSock.
Connect to an url, get /, and disconnect, periodically.
OnGSock GObj.
Name | Type | Default value | Description |
---|---|---|---|
seconds | int | 5 | Seconds to repeat the connection. |
url | str | www.google.com | Url to connect. |
verbose | int | 0 | Increase output verbosity. Values [0,1,2] |
Input-Events:
- 'EV_TIMEOUT': Timer over.
Start the machine.
'EV_CONNECTED': Connected to url.
'EV_DISCONNECTED': Disconnected from url.
'EV_RX_DATA': Receiving data from url.
'EV_TRANSMIT_READY': Url ready to transmit it data.
Output-Events:
- 'EV_START_TIMER': Start timer.