Show More
@@ -43,6 +43,10 b' class channeledoutput(object):' | |||
|
43 | 43 | self.out = out |
|
44 | 44 | self.channel = channel |
|
45 | 45 | |
|
46 | @property | |
|
47 | def name(self): | |
|
48 | return '<%c-channel>' % self.channel | |
|
49 | ||
|
46 | 50 | def write(self, data): |
|
47 | 51 | if not data: |
|
48 | 52 | return |
@@ -75,6 +79,10 b' class channeledinput(object):' | |||
|
75 | 79 | self.out = out |
|
76 | 80 | self.channel = channel |
|
77 | 81 | |
|
82 | @property | |
|
83 | def name(self): | |
|
84 | return '<%c-channel>' % self.channel | |
|
85 | ||
|
78 | 86 | def read(self, size=-1): |
|
79 | 87 | if size < 0: |
|
80 | 88 | # if we need to consume all the clients input, ask for 4k chunks |
General Comments 0
You need to be logged in to leave comments.
Login now