From 281bbcc6a7208c28283bc9bdd521c5d6cc48a60f Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Thu, 10 May 2012 02:14:55 +0000
Subject: Bidirectional socket communication (GUI once again works remotely).

git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4335 a436a847-0d15-0410-975c-d299462d15a1
---
 scripts/ingenish | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

(limited to 'scripts')

diff --git a/scripts/ingenish b/scripts/ingenish
index a142a392..6e73915a 100755
--- a/scripts/ingenish
+++ b/scripts/ingenish
@@ -35,7 +35,6 @@ class Client:
             self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
             parsed = re.split('[:/]', uri[len('tcp://'):])
             addr = (parsed[0], int(parsed[1]))
-            print addr
             self.sock.connect(addr)
 
     def __del__(self):
@@ -49,12 +48,12 @@ class Client:
 
     def send(self, msg):
         self.sock.send(self.msgencode(msg))
-        response = self.sock.recv(1024)
-        if response != self.msgencode('OK'):
-            print('Error: %s' % response)
-            return False
-        else:
-            return True
+        #response = self.sock.recv(1024)
+        # if response != self.msgencode('OK'):
+        #     print('Error: %s' % response)
+        #     return False
+        # else:
+        #     return True
         
     def put(self, path, body):
         return self.send('''
-- 
cgit v1.2.1