:PacketSize
Class
Syntax
PacketSize( [nSize] ) --> nPacketSize
Parameters
|
|
nSize |
Size of the ICMP datagram packet in bytes |
|
|
|
|
Return
If the function succeeds, the return value is the ICMP datagram packet size.
If nSize is passed, nPacketSize is the old Packet Size.
If no parameters were passed, nPacketSize is the current Packet Size.
If the function fails, the return value is zero. To get extended error information, call IcmpGetLastError.
Description
The IcmpSetPacketSize function sets the size of the ICMP datagram packet that is sent to the remote host.
Remarks
The default packet size is 32 bytes. The minimum packet size is 32 bytes and the maximum packet size is 16,384 bytes for 16-bit platforms and 65,535 bytes for 32-bit platforms. Specifying a packet size outside of this range will result in an error. Note that large packet sizes (packet sizes over 512 bytes) may not be supported by your networking software or configuration.
See Also