LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows/CVI 2020 raw socket reading

Hi to all,

 

I am using the LabWindows/CVI 2020 and the solution I have to make consist in a raw package receiver (to catch ICMP packages in particular).

 

What do you recommend to use for this case? The TCP library that CVI offers or the Windows' winsock library?

 

Thanks in advance.

0 Kudos
Message 1 of 2
(1,300 Views)

Short answer: you cannot use the CVI libraries for receiving ICMP packets.

ICMP is not IP so neither UDP/IP nor TCP/IP libraries will work (see Layer 3: Network Layer of OSI model.)

 

If you want to catch raw packets of any protocol type maybe Libpcap from Wireshark could work (haven't tried it myself).

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 2 of 2
(1,246 Views)