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..
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..
twisted.internet.stdio.StandardIO
不会在任何地方“存储”数据。它是一种与协议相关联的传输。与它关联的协议可以对传递给它的数据做任何你想做的事情。
StandardIO
您可以在 Twisted 文档中找到两个使用示例, https://twistedmatrix.com/documents/current/_downloads/stdin.py和https://twistedmatrix.com/documents/current/_downloads/stdiodemo.py。