aboutsummaryrefslogtreecommitdiff
path: root/python/client.py
blob: 6cc757ad3d548640ce52c2a1d0579738c79d57a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python
#
# Copyright (C) 2007-2012 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 )