aboutsummaryrefslogtreecommitdiff
path: root/python/client.py
blob: 094d3ddf275612189d8031b05edfa6bdfaf51616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python
#
# Copyright (C) 2007-2013 Xagasoft, All rights reserved.
#
# This file is part of the libgats library and is released under the
# terms of the license contained in the file LICENSE.
#

import gats
import socket
import time

s = socket.create_connection( ('localhost', 5051) )
gats.send( {'type': 'hello'}, s )
print gats.recv( s )

time.sleep( 10 )