[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/server/client.py
From: |
David Guerizec |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/server/client.py |
Date: |
Tue, 02 Aug 2005 09:26:29 -0400 |
Index: sshproxy/SSHproxy/server/client.py
diff -u sshproxy/SSHproxy/server/client.py:1.1
sshproxy/SSHproxy/server/client.py:1.2
--- sshproxy/SSHproxy/server/client.py:1.1 Thu Jul 21 09:43:36 2005
+++ sshproxy/SSHproxy/server/client.py Tue Aug 2 13:26:29 2005
@@ -21,7 +21,7 @@
import sys, os, socket, traceback, select
import paramiko, SSHproxy
-class ProxyClient:
+class ProxyClient(object):
def __init__(self, proxy_glue):
self.proxy_glue = proxy_glue
print 'waiting for remote side to accept connection...',
@@ -52,19 +52,19 @@
if chan in r:
try:
x = chan.recv(1024)
+ self.fdout.send(x)
if len(x) == 0 or chan.closed or chan.eof_received:
print "chan closed"
break
- self.fdout.send(x)
except socket.timeout:
pass
if self.fdin in r:
try:
x = self.fdin.recv(1024)
+ chan.send(x)
if len(x) == 0 or self.fdin.closed or
self.fdin.eof_received:
print "fdin closed"
break
- chan.send(x)
except socket.timeout:
pass
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sshproxy-dev] Changes to sshproxy/SSHproxy/server/client.py,
David Guerizec <=