TClientList -
TCustomWSocket -
TTCPClient -
TTCPServer -
TUDPClient -
TUDPServer -
Register -
TOnAccept
TOnClose
TOnConnect
TOnData
TOnError
TReadBuffer
TSocketState
MAX_LOOP
READ_BUFFER_SIZE
WM_ASYNCSELECT
procedure Register;
TOnAccept = procedure(Sender: TObject; Socket: TSocket) of object
TOnClose = procedure(Sender: TObject; Socket: TSocket) of object
TOnConnect = procedure(Sender: TObject; Socket: TSocket) of object
TOnData = procedure(Sender: TObject; Socket: TSocket) of object
TOnError = procedure(Sender: TObject; Error: integer; Msg: string) of object
TReadBuffer = array[1..READ_BUFFER_SIZE] of byte;
TSocketState = (ssNotStarted, ssClosed, ssConnected, ssListening, ssOpen);
MAX_LOOP = 100
READ_BUFFER_SIZE = 1024
WM_ASYNCSELECT = WM_USER + 1
WSockets Version 1.20 - A Simple VCL Encapsulation of the WinSocket API
VCL Classes in this Unit:
TTCPClient - A TCP Client (derived from TCustomWSocket)
TTCPServer - A TCP Server (derived from TCustomWSocket)
TUDPClient - A UDP Client (derived from TCustomWSocket)
TUDPServer - A UDP Server (derived from TCustomWSocket)
Other classes ni this Unit:
TCustomWSocket - A generic base class for other socket classes
TClientList - A list class used only by the TTCPServer class
Legal issues:
Copyright (C) 1997 by Robert T. Palmqvist
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.
Credits go to:
Gary T. Desrosiers. His unit "Sockets" inspired me to write my own.
Martin Hall, Mark Towfig, Geoff Arnold, David Treadwell, Henry Sanders
and InfoMagic, Inc. for their Windows Help File "WinSock.hlp".
All the guys at Borland who gave us a marvellous tool named "Delphi"!
Recommended information sources:
Specification:
Windows Sockets Version 1.1 Specification
Textbook:
Quinn and Shute. "Windows Sockets Network Programming"
1996 by Addison-Wesley Publishing Company, Inc. ISBN 0-201-63372-8
World Wide Web:
http://www.sockets.com
http://www.stardust.com
Network News:
alt.winsock.programming
Frequently Asked Questions:
"WinSock Application FAQ" Mailto: info@lcs.com Subject: faq
Requests for Comments:
RFC 768 "User Datagram Protocol"
RFC 791 "Internet Protocol"
RFC 793 "Transmission Control Protocol"