@Test public void testIPv6ForwardOutbound() throws UnknownHostException, InetPacketException, InterruptedException { startUdpListener(FORWARDER_PORT, TestCase.TestIPv6ForwardOutbound); InetPoint forwarder = new InetPoint(getAddressBytes(FORWARDER_HOST), FORWARDER_PORT); InetPacketSender sender = new InetPacketSender(forwarder); InetPoint client = new InetPoint(getAddressBytes(CLIENT_HOST_IPV6), CLIENT_PORT); sender.forward(client, PAYLOAD); checkBackgroundThreadAssertion(); }
public void forward(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring forward request for null packet"); return; } if ( frwdPoint == null ) throw new InetPacketException("Couldn't forward packet. Reason: Forwarding destination is not defined."); send(frwdPoint, new InetPacket(packet).getBundle()); }
InetPacketSender { public void forward(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring forward request for null packet"); return; } if ( frwdPoint == null ) throw new InetPacketException("Couldn't forward packet. Reason: Forwarding destination is not defined."); send(frwdPoint, new InetPacket(packet).getBundle()); } }
InetPacketSender { public void forward(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring forward request for null packet"); return; } if ( frwdPoint == null ) throw new InetPacketException("Couldn't forward packet. Reason: Forwarding destination is not defined."); send(frwdPoint, new InetPacket(packet).getBundle()); } InetPacketSender();  InetPacketSender(InetPoint frwdPoint); }
InetPacketSender { public void forward(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring forward request for null packet"); return; } if ( frwdPoint == null ) throw new InetPacketException("Couldn't forward packet. Reason: Forwarding destination is not defined."); send(frwdPoint, new InetPacket(packet).getBundle()); } 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 forward(DatagramPacket packet) throws InetPacketException { if ( packet == null ) { log.warn("Ignoring forward request for null packet"); return; } if ( frwdPoint == null ) throw new InetPacketException("Couldn't forward packet. Reason: Forwarding destination is not defined."); send(frwdPoint, new InetPacket(packet).getBundle()); } 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);  }