Indy 9
TIdDISCARDServer
Hierarchy, Properties, Methods, Events, See Also, Unit: IdDiscardServer
Implements a Discard Protocol server.
TIdDISCARDServer = class(TIdTCPServer)
Unit
IdDiscardServer
Description
TIdDISCARDServer is a TIdTCPServer descendant that implements a TCP-based server for the Discard Protocol, as described in the Internet Standards document:

  • RFC 863 - Discard Protocol (http://www.rfc-editor.org/rfc/rfc863.txt)

TIdDISCARDServer is a useful debugging and measurement protocol where the data sent to the server is simply discarded. TIdDISCARDServer provides a default implementation that accepts threaded client connections, reads the connection for the TIdPeerThread to determine it's InputBuffer contents, and discards the values. The threaded client connection automatically terminates after reading the InputBuffer.


TIdDISCARDServer.DefaultPort
TIdDISCARDServer, See Also
Default port number used for client connections.
property DefaultPort: integer;
Description
DefaultPort is an Integer property that represents the default port number for listening and accepting client connections to TIdDISCARDServer. DefaultPort is redefined in TIdDISCARDServer, and the value IdPORT_DISCARD is assigned in the Create constructor.

TIdDISCARDServer.Create
TIdDISCARDServer, See Also
Constructor for the object instance.
constructor Create(AOwner: TComponent); override;
Parameters
AOwner: TComponent
Owner of the object instance.
Description
Create is the constructor for the object instance, and calls the inherited Create method to instantiate a new TIdDiscardServer component. Create sets the value of DefaultPort to the standard port number used for the Discard protocol (IdPORT_DISCARD).

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.