Пример #1
0
 def response_pdu(self, org_pdu):
     pdu = PDU(pyagentx.AGENTX_RESPONSE_PDU)
     pdu.session_id = org_pdu.session_id
     pdu.transaction_id = org_pdu.transaction_id
     pdu.packet_id = org_pdu.packet_id
     return pdu
Пример #2
0
 def new_pdu(self, type):
     pdu = PDU(type)
     pdu.session_id = self.session_id
     pdu.transaction_id = self.transaction_id
     self.transaction_id += 1
     return pdu