aboutsummaryrefslogtreecommitdiff
path: root/python/client.py
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-01-16 16:42:17 +0000
committerMike Buland <eichlan@xagasoft.com>2012-01-16 16:42:17 +0000
commit4843dede4add1764ced095ecf3e41ecc3a53240e (patch)
treecea32f881e5760dd417e3e8a0eaf2b3b15ecd32e /python/client.py
parentdfeb2636eb83098ebd621ce2add83ef9e256318f (diff)
downloadlibgats-4843dede4add1764ced095ecf3e41ecc3a53240e.tar.gz
libgats-4843dede4add1764ced095ecf3e41ecc3a53240e.tar.bz2
libgats-4843dede4add1764ced095ecf3e41ecc3a53240e.tar.xz
libgats-4843dede4add1764ced095ecf3e41ecc3a53240e.zip
Added networking compatible send/recv functions as helpers, plus a bunch of
docs.
Diffstat (limited to '')
-rwxr-xr-xpython/client.py11
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
3import gats
4import socket
5import time
6
7s = socket.create_connection( ('localhost', 5051) )
8gats.send( {'type': 'hello'}, s )
9print gats.recv( s )
10
11time.sleep( 10 )