Not exactly. My server will listen on some socket to accept connections from clients on well known port. When client connect, server will accept connection and exec external binary (fork/exec). This external binary open another local socket and lent know main server to know it is ready by sending its path on stdout. When server gets this socket, it open it and from this point server acts as active proxy between client and external binary.
If all external binaries can be spawned onece at start, it is simple. But fork/exec plus initialization in external binary is not cheap operation. So i can not simply call fork followed by exec and waitpid inside main loop. It will block another clients. So i hope i can fork/exec in another thread. But i do not know if it is safe ;) Have a nice day! Pete -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
