I’d like to create an application that gets the ipv4 tcp table ( currently by using GetTcpTable() ), then gets a socket (searching for a particular IP address) and peeks data from that connection (it actually has to send data too).
So we have two processes on the same machine, one that has a connection to a server, and another one that exploits that connection to peek/send data from it.
Is it possible to use a socket created by another process?
I am writing an add-on application for a videogame, and need to “talk” to the server the game is connected to.
There is not, in general, a commonly available method to do this. One approach might be to write a man-in-the-middle process (also known as a “proxy”), where you set up the game to connect to your program, then you connect to the game server. All communications between the game and the server would then go through your application, and you can inspect and modify data at will.