                     Telnet server unit
                          for 
                   Borland Pascal for Windows
                       version 1.0

This package contains a telnet daemon program as a Turbo Pascal unit.
It will give you the possibility to control any TPW program by network.



Contents:
	telnet.pas        main unit 
	demo.pas	  simple demo program
	mycrt.pas         WinCRT-like unit
        vt100.inc         VT100 terminal emulation

	winsock.pas,
	winsock.inc,
	error.inc        winsock DLL interface for TP (by M.Caughran) 

The winsock interface is taken from 'Finger' program by M.Caughran.

----------------------------------------------------------------------

Usage:

See 'demo.pas' for the use of different procedures.
Compile and run 'demo.pas', then connect to your computer by telnet.
Enter the password ('demo') and go through different test menus.
To quit a menu type 'exit'. When you type 'exit' in the main menu
the server closes the connection.


Features:

The communication between the telnet daemon and your program
is asynchronous, i.e. when the remote user enters a command 
the daemon calls  an appropriate procedure of your program.
In this way the program can continue its tasks independently
of the state of the network connection. In fact, my intention
was to use it to control real-time processes where the security
is important and the program should not hang up because of network 
problems. For the same reason, there is no way for the program
to wait for the remote user input. Instead, you can define 
define several procedures relative to different user menus.
Some basic VT100 commands are implemented.


Possible improvements:

1)implementing other VT100 commands. But I did not find 
a complete description of the protocol (this is also why the 
password appears as you type it) 
I would be grateful to anyone for sending me one.

2)converting the TP unit to a DLL, so that other (non TP)
programs can share it and be accessible by network simultaneously.


--------------------------------------------------------------
The package may be freely copied and distributed provided that 
the files included are not modified in any way.
All rights are reserved to the author.
--------------------------------------------------------------


any comments should be sent to:

Pawel Wzietek
Universite Paris-Sud, Orsay, France
email: wzietek@lps.u-psud.fr



