Skip to content
Browse files

whitespace

  • Loading branch information...
1 parent f893237 commit 6e67964a1dfac7d91b1780f2b8b917b467c3ad88 @progrium committed Apr 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 localtunnel/client.py
View
8 localtunnel/client.py
@@ -65,23 +65,23 @@ def listen(self):
elif msg.is_binary:
conn_id, data = decode_data_packet(msg.data)
self.local_send(conn_id, data)
-
+
def local_open(self, conn_id):
socket = create_connection(('0.0.0.0', self.local_port))
self.connections[conn_id] = socket
self.spawn(self.local_recv, conn_id)
-
+
def local_close(self, conn_id):
socket = self.connections.pop(conn_id)
try:
socket.shutdown(0)
socket.close()
except:
pass
-
+
def local_send(self, conn_id, data):
self.connections[conn_id].send(data)
-
+
def local_recv(self, conn_id):
while True:
data = self.connections[conn_id].recv(1024)

0 comments on commit 6e67964

Please sign in to comment.
Something went wrong with that request. Please try again.