aboutsummaryrefslogtreecommitdiffstats
path: root/termcast.py
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 01:39:23 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 01:44:51 -0400
commit070da900a4bdda26ee4ee00ad6e3d9fcb6aa262a (patch)
tree9e2e19f22bf4c0690521222cb453ec058bfd7c46 /termcast.py
parentf5c3448d15e1e9e1f51d4c9f2b0d1b8a4e0e4b10 (diff)
downloadpython-termcast-server-070da900a4bdda26ee4ee00ad6e3d9fcb6aa262a.tar.gz
python-termcast-server-070da900a4bdda26ee4ee00ad6e3d9fcb6aa262a.zip
start working on a watcher menu for the ssh side
Diffstat (limited to 'termcast.py')
-rw-r--r--termcast.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/termcast.py b/termcast.py
index c1d8a5e..c5495cf 100644
--- a/termcast.py
+++ b/termcast.py
@@ -52,7 +52,8 @@ class Connection(object):
return
print(b"got auth: " + auth)
- self.client.send(b"hello, " + m.group(1) + b"\n")
+ self.name = m.group(1)
+ self.client.send(b"hello, " + self.name + b"\n")
extra_data = {}
extra_data_re = re.compile(b'^\033\[H\000([^\377]*)\377\033\[H\033\[2J(.*)$')
@@ -81,3 +82,9 @@ class Connection(object):
# if connection_id != self.connection_id:
# return
self.publisher.notify("new_data", self.connection_id, self.handler.buf, b'')
+
+ def request_get_streamers(self):
+ return {
+ "name": self.name,
+ "id": self.connection_id,
+ }