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..

sloth
  • 99,095
  • 21
  • 171
  • 219
Suruchi
  • 171
  • 1
  • 7

1 Answers1

7

twisted.internet.stdio.StandardIO doesn't "store" data anywhere. It is a transport which you associate with a protocol. The protocol you associate with it can do anything you want with the data delivered to it.

You can find two examples of using StandardIO in the Twisted documentation, https://twistedmatrix.com/documents/current/_downloads/stdin.py and https://twistedmatrix.com/documents/current/_downloads/stdiodemo.py.

Glyph
  • 31,152
  • 11
  • 87
  • 129
Jean-Paul Calderone
  • 47,755
  • 6
  • 94
  • 122
  • Jean-Paul, One more help, please. Could you please give me an example for this as per the above answer. – Suruchi Nov 29 '11 at 04:51
  • Maybe you should tick this answer as correct if it answers to your need correctly – AsTeR Nov 30 '11 at 12:39