开发者

can SimpleXMLRPCServer listen on multiple addresses?

I have two IPs mapping to the machine, and I was wondering how I can have one python xmlrpc server listening on both IPs (same port), like you could do wi开发者_如何学Pythonth Apache.

Thank you,


Use "" as the host:

s = SimpleXMLRPCServer.SimpleXMLRPCServer(("", 8000))
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜