Internet Direct (Indy)
Home
PreviousUpNext
TIdStack.WriteChecksum Method

Specifies the mechanism used to write a CRC checksum value for data included in a packet transmission.

Pascal
procedure WriteChecksum(
    s: TIdStackSocketHandle; 
    var VBuffer: TIdBytes; 
    const AOffset: Integer; 
    const AIP: String; 
    const APort: Integer; 
    const AIPVersion: TIdIPVersion = ID_DEFAULT_IP_VERSION
); virtual; abstract;
Parameters 
Description 
Socket handle for the operation.
 
VBuffer 
Data send in the packet transmission.
 
AOffset 
Initial offset into the data to send in the packet transmission.
 
AIP 
IP address for the endpoint of the packet transmission.
 
APort 
Port number for the endpoint of the packet transmission.
 
AIPVersion 
IP Address family supported for transmission on the specified socket. Default value is ID_DEFAULT_IP_VERSION

WriteChecksum is an abstract virtual method that specifies the mechanism used to Write a CRC checksum value for data included in a packet transmission on the specified socket handle. 

WriteChecksum must be overridden and implemented in a descendant class that provides access to the specific capablities of the protocol stack for the operating system or platform hosting the Indy library. 

Use CalcCheckSum to perform calculation of the CRC checksum value written in the method.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.