[Vortex] Vortex listeners and threads
Philip Kovacs
kovacsp3 at comcast.net
Sun Jun 11 22:36:21 CEST 2006
Hi.
Am I correct that there is no way to shutdown a vortex listener, other than
to execute the vortex_exit()? In the example server code, the
vortex_exit()
function, although indicated, is never really executed, correct?
// use this thread, since no on_ready() indicated.
vortex_listener_new <http://www.aspl.es/fact/files/af-arch/vortex/html/group__vortex__listener_gcde5adbdfd99172186ed01f01462e351.html#gcde5adbdfd99172186ed01f01462e351> ("0.0.0.0", "3000", NULL, NULL);
// this is the last executed program statement, right?
vortex_listener_wait <http://www.aspl.es/fact/files/af-arch/vortex/html/group__vortex__listener_ga5c4c16502386b2e2f3370d34fb03d6d.html#ga5c4c16502386b2e2f3370d34fb03d6d> ();
// never executed
vortex_exit <http://www.aspl.es/fact/files/af-arch/vortex/html/group__vortex_gfcf3c4dbca2a82c369cc2268ec97363d.html#gfcf3c4dbca2a82c369cc2268ec97363d> ();
The documentation for the function vortex_listener_wait() is confusing:
"Blocks a listener (or listeners) launched until vortex finish."
// You're blocking the calling thread, not the listener, right?
This function should be called before creating a server calling to
vortex_listener_new
<http://www.aspl.es/fact/files/af-arch/vortex/html/group__vortex__listener_gcde5adbdfd99172186ed01f01462e351.html#gcde5adbdfd99172186ed01f01462e351>
to block current thread."
// I don't understand what is meant by this statement.
Phil
More information about the Vortex
mailing list