#!/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 )