Professional Documents
Culture Documents
P 1
want to learn:- node.js and javascript integration with mongoose web server
for (;;) {
mg_mgr_poll(&mgr, 1000);
}
mg_mgr_poll() iterates over all sockets, accepts new connections, sends and
receives data, closes connections and calls event handler functions for the
respective events. For the full example, see Usage Example which implements TCP
echo server.