-
Hello, I'm using SharpPcap version 6.3.0 for a VB.NET Visual Studio 2022 application, and I'm having a problem with the "PacketCapture" structure, which is obsolete. Code: PacketCapture Structure End Structure and Private Sub device_OnPacketArrival(sender As Object, e As PacketCapture) Dim rawPacket = e.header If anyone can help me, THANK YOU |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
@xeron333 PacketCapture is not obsolete, I can't read the code you posted, please format it properly using markdown syntax. |
Beta Was this translation helpful? Give feedback.
-
Hello thank you for your response,I'm new to git ub. Now do you understand my code? PacketCapture Structure End Structure Dim rawPacket = e.header` |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. I'm trying to create a class in C and reuse it in VB, but apparently it doesn't work either. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm finally coding in C# and no more problems, but I have another problem testing example 2 for Address Resolution Protocol (ARP): how do I choose the right IP address? I have the following hardware on my device:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I found the answer: for those who have the same problem, choose the device: |
Beta Was this translation helpful? Give feedback.
PacketCapture
is defined asref struct
, seems this is not supported by VB.NET, see dotnet/vblang#297