@Test public void testIPv4SendOutbound() throws InterruptedException, UnknownHostException, InetPacketException { startUdpListener(CLIENT_PORT, TestCase.TestIPv4SendOutbound); InetPacketSender sender = new InetPacketSender(); InetPoint client = new InetPoint(getAddressBytes(CLIENT_HOST_IPV4), CLIENT_PORT); sender.send(client, PAYLOAD); checkBackgroundThreadAssertion(); }
public void send(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring send request for null packet"); return; } InetPacket p = new InetPacket(packet); InetPoint point = p.getPoint(); if ( point == null ) throw new InetPacketException("Couldn't send packet. Reason: Destination is not defined in the packet (not a bundle?)"); send(point, p.getPayload()); }
InetPacketSender { public void send(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring send request for null packet"); return; } InetPacket p = new InetPacket(packet); InetPoint point = p.getPoint(); if ( point == null ) throw new InetPacketException("Couldn't send packet. Reason: Destination is not defined in the packet (not a bundle?)"); send(point, p.getPayload()); } }
InetPacketSender { public void send(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring send request for null packet"); return; } InetPacket p = new InetPacket(packet); InetPoint point = p.getPoint(); if ( point == null ) throw new InetPacketException("Couldn't send packet. Reason: Destination is not defined in the packet (not a bundle?)"); send(point, p.getPayload()); } InetPacketSender();  InetPacketSender(InetPoint frwdPoint); }
InetPacketSender { public void send(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring send request for null packet"); return; } InetPacket p = new InetPacket(packet); InetPoint point = p.getPoint(); if ( point == null ) throw new InetPacketException("Couldn't send packet. Reason: Destination is not defined in the packet (not a bundle?)"); send(point, p.getPayload()); } InetPacketSender();  InetPacketSender(InetPoint frwdPoint); void forward(DatagramPacket packet); void send(DatagramPacket packet); void forward(InetPoint dstPoint, byte[] payload); void forward(InetPoint dstPoint, byte[] payload, boolean fromForwarder); void send(InetPoint dstPoint, byte[] payload); boolean isForwardAll(); void setForwardAll(boolean forwardAll); }
InetPacketSender { public void send(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring send request for null packet"); return; } InetPacket p = new InetPacket(packet); InetPoint point = p.getPoint(); if ( point == null ) throw new InetPacketException("Couldn't send packet. Reason: Destination is not defined in the packet (not a bundle?)"); send(point, p.getPayload()); } InetPacketSender();  InetPacketSender(InetPoint frwdPoint); void forward(DatagramPacket packet); void send(DatagramPacket packet); void forward(InetPoint dstPoint, byte[] payload); void forward(InetPoint dstPoint, byte[] payload, boolean fromForwarder); void send(InetPoint dstPoint, byte[] payload); boolean isForwardAll(); void setForwardAll(boolean forwardAll);  }