Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

Converting ActiveX Control into .net and intercepting packets

$
0
0
I am trying to convert an ActiveX control developed in 1998 (now defunct) for monitoring a CNC machine into a winform application. What I believe this control does is connect to the machine server and then the server keeps sending packet information for the control to update. What I would like to do is intercept the packets being sent so I can update them in my form and say, display them in a custom graph, instead of having to use the control.

Using wireshark, an example of a packet being received after connection from the server is made:

Quote:

Transmission Control Protocol, Src Port: epp (700), Dst Port: 51502 (51502), Seq: 4409, Ack: 46, Len: 107
copying this byte as printable text in wireshark shows the machines X,Y,Z positions:

Quote:

4.714190- 0.655090 0.000000 0.000000 0.000000 0.000000NOUSENOUSE
So what I would like to first start doing is intercept these packets as they come in on that port or whichever port the control decides to use and display them, say in a label. I need to figure out how to intercept all incoming packets, and then decode them from byte into something readable similar to how above was done in wireshark.

As well, If I wanted to mimick the control so I do not have to keep using the .ocx control to mediate the connection, without understanding how it was written, could I send the same packets at connection time? Thanks for any help.

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>