fork a telnetd process under the unix or linux
-
hello all: now i have got some troubles,I wrote a program .it was run under the unix or linux in the program i first creat a socket and start to listen, when a connection comes ,my socket will catch it ,then i check if the connection's ip address was allowed ,if it was not in my ip table,i will refuse the connection ,if the ip address was in my ip table i will fork a child thread and exec a telnetd process then the child process give the socket connection to the telnetd process .and the telnetd process will take the child process position but i dont konw how can i start the telnetd process i tried ,but telnetd give met "on non-socket" error can sb show me code snippet,thankfulness!
a beginner
-
hello all: now i have got some troubles,I wrote a program .it was run under the unix or linux in the program i first creat a socket and start to listen, when a connection comes ,my socket will catch it ,then i check if the connection's ip address was allowed ,if it was not in my ip table,i will refuse the connection ,if the ip address was in my ip table i will fork a child thread and exec a telnetd process then the child process give the socket connection to the telnetd process .and the telnetd process will take the child process position but i dont konw how can i start the telnetd process i tried ,but telnetd give met "on non-socket" error can sb show me code snippet,thankfulness!
a beginner
alphaxz wrote:
but i dont konw how can i start the telnetd process...
If it is a separate program, see here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch