I need make linux simple console aplication which will be work with more socket in one thread. I call it router.
1) Router will be connected into remote "telnet console" (after connect, it will send some login detail + comands for configure session) ( = first port in router)
2) Router will be provide ports 9010-90xx for telnet connection into router from another clients.
3) All income telnet command from (2) will be rewrited with some rules and will be send into connection (1), income commands from connection (1) will be rewrite and send into one from connected client from (2), command where will not be rules for forward will be droped