Esempio n. 1
0
 def sendDisconnect(self, err_len=0, bs_len=0, int_info=0, data=''):
     d = defer.Deferred()
     d.addCallback(self.sendNextRequest)
     r = Request()
     r.deferred = d
     r.msg_type = 'RODS_DISCONNECT'
     self.request_queue.put(r)
     return d
Esempio n. 2
0
 def sendApiReq(self, int_info=0, err_len=0, bs_len=0, data='',
                bs_consumer=None, data_stream_cb=None):
     d = defer.Deferred()
     r = Request()
     r.deferred = d
     r.msg_type = 'RODS_API_REQ'
     r.int_info = int_info
     r.bs_len = bs_len
     r.err_len = err_len
     r.data = data
     r.data_stream_cb = data_stream_cb
     r.bs_consumer = bs_consumer
     self.request_queue.put(r)
     return d