Socket streams

M Rae egnu02 at castle.ed.ac.uk
Sat Jun 30 21:41:27 AEST 1990


I currently have a program which listens to a port for incoming calls and
when a call is recieved, the program forks off another process and connects
its stdin/out/err to the file descriptor given by accept.
This works fine apart from the fact that i am using a Sequent with a telnet
which doesn't work properly. 
I wrote a mini telnet program myself, but what i don't know how to do is
detect when the process tries to change the line condition (i.e. no echo) 
so that my telnet can set the state of its tty accordingly.
I am sure that use of out-of-band data is required, does anyone have any
hints as to how to do this or any small pieces of code that show how it is
done??

	-Mark



More information about the Comp.unix.questions mailing list