Table Of Contents

Previous topic

ginsfsm.examples.ongsock

Next topic

ginsfsm.examples.stress_connections

ginsfsm.examples.ongconnex

GObj OnGConnex

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.

class ginsfsm.examples.essential_gobjs.ongconnex.OnGConnex[source]

OnGConnex GObj.

Configurable Parameters:
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.
Diagram:

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.
start_up()[source]

Initialization zone.