6

I have a doubt in twisted python related to my multiclient chat server program.

that is, when we give input from keyboard using stdio.StandardIO, where it is stored when we run the reactor? Can anybody give me the answer, please..

4

1 回答 1

7

twisted.internet.stdio.StandardIO不会在任何地方“存储”数据。它是一种与协议相关联的传输。与它关联的协议可以对传递给它的数据做任何你想做的事情。

StandardIO您可以在 Twisted 文档中找到两个使用示例, https://twistedmatrix.com/documents/current/_downloads/stdin.pyhttps://twistedmatrix.com/documents/current/_downloads/stdiodemo.py

于 2011-11-28T18:56:08.610 回答