How can I sending packets through socket which I already created in my browser? I don't want to create new socket in Python, only bind socket as I mentioned earlier.
-
This question doesn't make sense. Are you sure you understand sockets, binding, processes, and file descriptors?o11c– o11c2015-06-25 22:28:46 +00:00Commented Jun 25, 2015 at 22:28
-
Maybe I used bad words. I want do something like wpe pro. This program can bind process in browser and sending packets. I want to sending packets in Python. Socket already exist in my browser, I want to bind this socket and sending packets in Python.Tkininter– Tkininter2015-06-26 17:24:20 +00:00Commented Jun 26, 2015 at 17:24
Add a comment
|
1 Answer
You cannot overtake an existing TCP connection from within another process without cooperation of the original process. With cooperation there are at least on UNIX like systems ways to transfer open file descriptors between processes. But to get this cooperation you would need to make changes to the browser.
But, your problem sounds like an XY problem. You should better ask about the original issue leading to this question.