* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE
Description: TnSrv implement a (very basic) Telnet server (daemon)
Compatible with both Delphi 1 and Delphi 2
Uses TWSocket to communicate with WinSock
Email: francois.piette@ping.be
2:293/2202@fidonet.org BBS: +32-4-365.13.95
Creation: April 1996
WebSite: http://www.rtfm.be/fpiette/indexuk.htm
Support: Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1997 by François PIETTE
This software is provided 'as-is', without any express or
implied warranty. In no event will the author be held liable
for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it
and redistribute it freely, subject to the following
restrictions:
1. The origin of this software must not be misrepresented,
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but is
not required.
2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
Updates:
Sep 18, 1996 Accept CR/LF or LF only as line terminator
Implement Help and Exit commands as demo
Mar 19, 1997 Use enhanced TWsocket object
Oct 03, 1997 V1.22 Added a $DEFINE POP3 to simulate a POP3 server
Oct 09, 1997 Added a $DEFINE SMTP to simulate a SMTP server
Oct 11, 1997 Added PortNum to specify which port we serve
Added pseudo POP3 and SMTP interpreters (nothing really happens
except transmission of pseudo correct answers. I use this
feature to debug SMTP and POP3 components).
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * TClientForm - Client user (remote) has disconnected
DISCONNECT_REMOTE
DISCONNECT_SELF
POP3_PORT
SMTP_PORT
WM_DISCONNECT
ClientForm
DISCONNECT_REMOTE = 2
Client form ask to disconnect
DISCONNECT_SELF = 1
POP3_PORT = 110
SMTP_PORT = 25
WM_DISCONNECT = WM_USER + 2
The message WM_DISCONNECT is used by the client form to tell the server } { form that the client has disconnected or should be disconnected.
ClientForm : TClientForm