(self, action)
| 116 | return trans |
| 117 | |
| 118 | def _request_header(self, action): |
| 119 | trans_id = random.randint(0, (1 << 32) - 1) |
| 120 | return trans_id, struct.pack('!QLL', self.conn_id, action, trans_id) |
| 121 | |
| 122 | def _process_response(self, action, payload, trans): |
| 123 | if action == CONNECT: |