roo*_*099 7 python sockets grpc
Python 中的 gRPC 支持是否允许我实现一个侦听 Unix 域套接字(而不是端口)的服务器?我正在使用 Python 3.5.3 和grpcio/ grpcio-tools1.18.0。
grpcio
grpcio-tools
到目前为止,我还没有找到任何相关的例子,也没有直接的证据。在官方 的例子使用server.add_insecure_port('[::]:50051'),而且其还不清楚插座可能适合在那里。
server.add_insecure_port('[::]:50051')
roo*_*099 5
显然,毕竟add_insecure_port(address)接受格式的 Unix 域套接字unix://var/run/test.sock。
add_insecure_port(address)
unix://var/run/test.sock
归档时间:
7 年,6 月 前
查看次数:
3014 次
最近记录: