diff options
Diffstat (limited to 'python/client.py')
| -rwxr-xr-x | python/client.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/client.py b/python/client.py new file mode 100755 index 0000000..53e38fd --- /dev/null +++ b/python/client.py | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #!/usr/bin/python | ||
| 2 | |||
| 3 | import gats | ||
| 4 | import socket | ||
| 5 | import time | ||
| 6 | |||
| 7 | s = socket.create_connection( ('localhost', 5051) ) | ||
| 8 | gats.send( {'type': 'hello'}, s ) | ||
| 9 | print gats.recv( s ) | ||
| 10 | |||
| 11 | time.sleep( 10 ) | ||
