[BusyBox] Simple telnet updates
Tomi Ollila
Tomi.Ollila at sonera.com
Tue Jun 13 07:17:50 UTC 2000
Hi
(I sent similar mail to you last friday, but due to our company mailserver
problems it apparently never reached you -- and unfortunately I was stupid
enough not to save local copy...)
I've done some updates to the telnet client I sent you last week. Those are
mostly code cleanups...:
outputstrings() is simplified.
It now uses defines for allocated buffer sizes (and when data is read to
those):
It has possibility to use poll() instead of select(). This increases
efficienncy and reduces code size over 100 bytes (of course to have effect
on busybox, all select()s should be changed to poll()s -- I can take a look
on that lated.
Now program suspension ('z') works.
And one minor bug was found -- I used fd 0 to write telnet output to the
console -- that is now fixed to one.
The updated source code is atttached below.
I have also updated that software to work as a simple telnet daemon -- or
to work as a simple netcat, i.e. not handling telnet negotiations. Also,
this "further work" can also execute a separate process and handle network
traffic to/from it (a.la. inetd, with the execption that telnet
negotiations can be filtered). I utilize this program in `tomsrtbt' and it
is possible that Tom Oehser even adds it to his single floppy distribution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: telnet.c
Type: application/octet-stream
Size: 12824 bytes
Desc: a telnet client
Url : http://lists.busybox.net/pipermail/busybox/attachments/20000613/99b56646/attachment.obj
More information about the busybox
mailing list