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