示例#1
0
 def nl_data_request(self, my_circuit_id: int, remote_call: AX25Call,
                     local_call: AX25Call, data: bytes) -> None:
     dest = NetRomAddress(remote_call.callsign, remote_call.ssid)
     routed, mtu = self.l3_protocol.route_packet(dest)
     if routed:
         event = NetRomStateEvent.nl_data(my_circuit_id, remote_call, data,
                                          mtu)
         self.sm.handle_internal_event_sync(event)
     else:
         self.debug(f"No route to {dest}, dropping")
示例#2
0
 def nl_data_request(self, my_circuit_id: int, remote_call: AX25Call,
                     local_call: AX25Call, data: bytes):
     event = NetRomStateEvent.nl_data(my_circuit_id, remote_call, data)
     event.future = self.loop.create_future()
     self.sm.handle_internal_event(event)
     return event.future