python binding for f-stack
run python setup.py install
pyfstack exports four modules: fstack, socket, select, fcntl.
this module used to init f-stack and run loop function.
fstack.Fstack(config_file, proc_type, proc_id)
Constructor of fstack.Fstack class, the arguments are same as ff_init
run(fn, *args, **kwargs): run the loop callback,argsandkwargsis the arguments offn
you can use the following code to init f-stack and run the loop callback
ffobj = fstack.Fstack(conf, proc_type, proc_id)
ffobj.run(loop_cb, arg1, ...)
similar to the builtin socket module
similar to the builtin select module
similar to the builtin fcntl module