List of usage examples for java.net DatagramPacket setAddress
public synchronized void setAddress(InetAddress iaddr)
From source file:org.opendaylight.lispflowmapping.integrationtest.MappingServiceIntegrationTest.java
License:asdf
private void initPacketAddress(DatagramPacket packet, int port) throws UnknownHostException { packet.setAddress(InetAddress.getByName(lispBindAddress)); packet.setPort(port);//from ww w . j ava 2 s. c o m }