LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you change the buffer size when using InetPing in CVI 7.1.1?

I was wondering if anyone knows if there is a way to change the buffer size when using the InetPing function in the Internet Library? For example; when you use the ping command you can pass a "-l" parameter to specify the buffer size. I was also wondering if the InetPing function uses the default buffer size of 32 bytes?

Thanks.
Mark
0 Kudos
Message 1 of 4
(3,628 Views)
InetPing() does not send a data payload with the ICMP, so the data buffer size is 0. This is not user configurable option. I'll make this information available in a KB. Is this causing a problem for you?
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,620 Views)
Hi Bilal,

Thanks for your reply. I'm developing an application that monitors download rates, and the users want the ability to surf and ping. I was hoping that I could increase the buffer size on the ping and use the response time to calculate ping rates.

Thanks,
mark
0 Kudos
Message 3 of 4
(3,604 Views)
You can file this as a product suggestion by going this link and going to Product feedback.

As a workaround, you should be able to use the ICMP functions in the Windows SDK to be able to set up a ping based on the specificications you need.
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,580 Views)