Subversion Repositories SmartDukaan

Rev

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 TSocket
from thrift.transport.TTransport import TFramedTransport
from thrift.protocol.TBinaryProtocol import TBinaryProtocol

class BasicClient:
    
    
    def initialize(self, host , port):
        self.host = host
        self.port = port
        self.__start()
        
    def __start(self):
        self.transport = TSocket.TSocket(self.host, self.port)
        self.transport = TFramedTransport(self.transport)
        self.protocol = TBinaryProtocol(self.transport)