Topic Path: Symbol Reference > Classes > TIdStack Class > TIdStack Methods > WriteChecksum Method
ContentsIndexHome
PreviousUpNext
TIdStack.WriteChecksum Method

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.