Rev 3124 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
'''Created on 17-May-2010@author: ashish'''from thrift.transport import TSocketfrom thrift.transport.TTransport import TFramedTransportfrom thrift.protocol.TBinaryProtocol import TBinaryProtocolclass BasicClient:def initialize(self, host , port):self.host = hostself.port = portself.__start()def __start(self):self.transport = TSocket.TSocket(self.host, self.port)self.transport = TFramedTransport(self.transport)self.protocol = TBinaryProtocol(self.transport)