开发者

Can Ancillary library be used for sharing accepted connections between unrelated processes (not forked ones)?

开发者 https://www.devze.com 2023-02-17 11:26 出处:网络
We create app A. start it from super user. It opens socket and waits for connections. Connection establishes. We want to let another, not forked, separately launched by super user process to take that

We create app A. start it from super user. It opens socket and waits for connections. Connection establishes. We want to let another, not forked, separately launched by super user process to take that established connection and be capable to send data over it not interrupting/reestablishing it. We create both A and B apps and we can implement any required logical algorithms into them both. How shall开发者_如何学Python our apps logic look like? and will Ancillary library be capable to help me with such task?


You can open a unix domain socket between the processes and pass file descriptors over it. See this site for an explanation and example:

http://www.lst.de/~okir/blackhats/node121.html

0

精彩评论

暂无评论...
验证码 换一张
取 消