Parent Directory | Revision Log
|Links to HEAD:||(view) (annotate)|
Moved telnet-stream stuff into its own file.
Minor changes to ACCEPT-CONNECTION and CYCLE-MASTER-THREAD. Of course, I still haven't even compiled this so I have no clue whether those even work yet, but who cares.
Flushed old READ-CHAR implementation in favor of new simple READ-CHAR and complex READ-COMMAND which reads a telnet command into a single sequence and returns it. Not finished with READ-COMMAND yet. Also redid READ-CHAR, UNREAD-CHAR to use CL functions directly on stream rather than maintaining our own character unread mechanism. Will make PEEK-CHAR implementation much simpler too. Probably the READ-CHAR should become %READ-CHAR and then a new READ-CHAR which does command processing can wrap around it. Or different names perhaps, but the user shouldn't need to call READ-COMMAND and PROCESS-TELNET-COMMAND directly.
Start on implementing Telnet stream for real. It's just a wrapper class around the actual stream, rather than directly inherited from the stream. This means we have to implement all the damned stream functions for it, but oh well. Most of them will just be wrappers anyway. Finished renaming old NVT constants. Now we say +CMD-FOO+ and +OPT-FOO+. Start of work on option and command handling. PROCESS-TELNET-COMMAND does things with IAC sequences. SUBNEGOTIATE-OPTION handles IAC SB ... IAC SE. Example is SUBNEGOTIATE-NAWS-OPTION which puts together NAWS width and height and passes them to a user-supplied support function. There's something wrong with how commands and options are processed, one character at a time. I think it might be better to snarf an entire IAC sequence (maybe two, if we see eg IAC SB) and then process that all at once. This bears consideration. It would certainly allow us to recover cleanly from corruption, and would probably be faster too. Another issue pending is whether the stream should be bytes rather than characters. Using characters could cause problems if Unicode appeared.
More option fiddling. Also complete list of possibly relevant RFC refer- ences added to header comments. Includes gratuitously crufty ones like SUPDUP, RCTE, as well as fancy new authentication and encryption stuff.
Added many Telnet option and command constants. Still messing with ways to make TELNET-STREAM do what I want, and trying to figure out what I want.
Initial import of LTELNETD code.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
|Powered by ViewVC 1.1.5|