I'm building a telnet application which uses GNU Readline to handle console input. Current implementation forks a new child for every new client connection - this assigns one readline instance for each child process.
Fork-type network servers are not the most efficient, so I'd like to use poll/epoll instead, but for that readline would have to be configured to work with multiple stream buffers and history, one for each client connection.
I read the GNU readline documentation in search of such configuration, but didn't find it. Is this possible, or is there some kind of readline alternative that would eneble this feature? Shall I give up this idea?