コード例 #1
0
 def send(self, data: Transmittable, destinationMacAddr: bytes):
     p = Packet(SimpleNetworkHeader(self.macAddr, destinationMacAddr), data)
     self._mac.gates["networkIn"].send(p)