13 |
GNU General Public License for more details. |
GNU General Public License for more details. |
14 |
|
|
15 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
16 |
along with GNU Inetutils; see the file COPYING. If not, write to |
along with GNU Inetutils; see the file COPYING. If not, write |
17 |
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
to the Free Software Foundation, Inc., 51 Franklin Street, |
18 |
Boston, MA 02111-1307, USA. */ |
Fifth Floor, Boston, MA 02110-1301 USA. */ |
19 |
|
|
20 |
#define TELOPTS |
#define TELOPTS |
21 |
#define TELCMDS |
#define TELCMDS |
370 |
|
|
371 |
|
|
372 |
/* io_drain () |
/* io_drain () |
373 |
* |
* |
374 |
* |
* |
375 |
* A small subroutine to flush the network output buffer, get some data |
* A small subroutine to flush the network output buffer, get some data |
376 |
* from the network, and pass it through the telnet state machine. We |
* from the network, and pass it through the telnet state machine. We |
377 |
* also flush the pty input buffer (by dropping its data) if it becomes |
* also flush the pty input buffer (by dropping its data) if it becomes |
440 |
|
|
441 |
/* |
/* |
442 |
* nextitem() |
* nextitem() |
443 |
* |
* |
444 |
* Return the address of the next "item" in the TELNET data |
* Return the address of the next "item" in the TELNET data |
445 |
* stream. This will be the address of the next character if |
* stream. This will be the address of the next character if |
446 |
* the current address is a user data character, or it will |
* the current address is a user data character, or it will |
480 |
|
|
481 |
/* |
/* |
482 |
* netclear() |
* netclear() |
483 |
* |
* |
484 |
* We are about to do a TELNET SYNCH operation. Clear |
* We are about to do a TELNET SYNCH operation. Clear |
485 |
* the path to the network. |
* the path to the network. |
486 |
* |
* |
487 |
* Things are a bit tricky since we may have sent the first |
* Things are a bit tricky since we may have sent the first |
488 |
* byte or so of a previous TELNET command into the network. |
* byte or so of a previous TELNET command into the network. |
489 |
* So, we have to scan the network buffer from the beginning |
* So, we have to scan the network buffer from the beginning |
490 |
* until we are up to where we want to be. |
* until we are up to where we want to be. |
491 |
* |
* |
492 |
* A side effect of what we do, just to keep things |
* A side effect of what we do, just to keep things |
493 |
* simple, is to clear the urgent data pointer. The principal |
* simple, is to clear the urgent data pointer. The principal |
494 |
* caller should be setting the urgent data pointer AFTER calling |
* caller should be setting the urgent data pointer AFTER calling |