Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

SendDatagramSegmentsEcn

function SendDatagramSegmentsEcn(aHandle: TSocketHandle; const aBuf; aCount, aSegmentSize: Integer; const aTo: tSocketAddress; aEcn: tDatagramEcn; out aError: Integer): Integer;
SendDatagramSegments with every datagram marked aEcn, as SendDatagramEcn marks one; deNotEct is SendDatagramSegments. On Windows two or more go in one WSASendMsg carrying both UDP_SEND_MSG_SIZE and IP_ECN (all or none) where the system has segmentation offload; if it refuses that combination, that call sends one marked datagram at a time. Elsewhere one marked datagram per call. 0 with aError = cDatagramUnsupported: nothing was sent, as with SendDatagramEcn.