CIcmpClient::SetPacketSize Method  
 
UINT SetPacketSize(
  UINT nPacketSize  
);

The SetPacketSize method sets the size of the ICMP datagram packet that is sent to the remote host.

Parameters

nPacketSize
Size of the ICMP datagram packet in bytes. The minimum packet size is 1 byte and the maximum packet size is 65,535 bytes.

Return Value

If the method succeeds, the return value is the previous ICMP datagram packet size. If the method fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Note that packet sizes over 512 bytes may not be supported by your networking software or configuration. It is recommended that most applications use the minimum packet size of 32 bytes.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csicmv11.lib

See Also

GetPacketSize, SetSequenceId, SetTimeToLive