套接字与python中的multiprocessing.connection.Listener之间的区别

问题描述 投票:2回答:1

我知道有多种方法可以在python中实现IPC,例如PipesQueue;但是根据Python的官方文档,还有另一种方法Listener and Client

multiprocessing.connection.Listener非常类似于socket,并且都具有相同的功能,例如accept()close()send()recv()。因此,如果我们仅关注IPC目的,那么这两个模块之间有什么区别?哪一个效率更高?

我知道有多种方法可以在python中实现IPC,例如Pipes和Queue;但是根据Python的官方文档,还有另一种方法称为Listener和Client。 ...
python sockets multiprocessing ipc python-multiprocessing
1个回答
2
投票
套接字家庭
© www.soinside.com 2019 - 2024. All rights reserved.