[英]How can I bind already existing socket in Python 2.7 on Linux?
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.
我不想在Python中创建新的套接字,仅像我前面提到的那样绑定套接字。
You cannot overtake an existing TCP connection from within another process without cooperation of the original process. 如果没有原始进程的配合,则不能从另一个进程中接管现有的TCP连接。 With cooperation there are at least on UNIX like systems ways to transfer open file descriptors between processes.
通过合作,至少在类似UNIX的系统上存在在进程之间传输打开文件描述符的方法。 But to get this cooperation you would need to make changes to the browser.
但是要获得这种合作,您需要对浏览器进行更改。
But, your problem sounds like an XY problem . 但是,您的问题听起来像是XY问题 。 You should better ask about the original issue leading to this question.
您最好询问导致该问题的原始问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.